- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.WG-diagnosticsWorking group: DiagnosticsWorking group: Diagnostics
Description
error: const items should never be #[no_mangle]
 --> const.rs:1:14
  |
1 | #[no_mangle] pub const RAH: usize = 5;
  |              -----^^^^^^^^^^^^^^^^^^^^
  |              |
  |              help: try a static value: `pub static`
  |
  = note: #[deny(no_mangle_const_items)] on by default
should look more like
error: const items should never be #[no_mangle]
 --> const.rs:1:14
  |
1 | #[no_mangle] pub const RAH: usize = 5;
  |                  -----^^^^^^^^^^^^^^^^
  |                  |
  |                  help: try a static value: `static`
  |
  = note: #[deny(no_mangle_const_items)] on by default
due to faulty assumptions introduced in #45232
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.WG-diagnosticsWorking group: DiagnosticsWorking group: Diagnostics