1 warning: lint `private_no_mangle_fns` has been removed: no longer a warning, `#[no_mangle]` functions always exported
3 = note: requested on the command line with `-F private_no_mangle_fns`
5 warning: lint `private_no_mangle_statics` has been removed: no longer a warning, `#[no_mangle]` statics always exported
7 = note: requested on the command line with `-F private_no_mangle_statics`
9 warning: lint `private_no_mangle_fns` has been removed: no longer a warning, `#[no_mangle]` functions always exported
11 = note: requested on the command line with `-F private_no_mangle_fns`
13 warning: lint `private_no_mangle_statics` has been removed: no longer a warning, `#[no_mangle]` statics always exported
15 = note: requested on the command line with `-F private_no_mangle_statics`
17 warning: lint `private_no_mangle_fns` has been removed: no longer a warning, `#[no_mangle]` functions always exported
19 = note: requested on the command line with `-F private_no_mangle_fns`
21 warning: lint `private_no_mangle_statics` has been removed: no longer a warning, `#[no_mangle]` statics always exported
23 = note: requested on the command line with `-F private_no_mangle_statics`
25 error: const items should never be `#[no_mangle]`
26 --> $DIR/lint-unexported-no-mangle.rs:9:1
28 LL | const FOO: u64 = 1;
31 | help: try a static value: `pub static`
33 = note: requested on the command line with `-F no-mangle-const-items`
35 error: const items should never be `#[no_mangle]`
36 --> $DIR/lint-unexported-no-mangle.rs:12:1
38 LL | pub const PUB_FOO: u64 = 1;
39 | ---------^^^^^^^^^^^^^^^^^^
41 | help: try a static value: `pub static`
43 error: aborting due to 2 previous errors; 6 warnings emitted