]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-unexported-no-mangle.stderr
Move parse-fail tests to UI
[rust.git] / src / test / ui / lint / lint-unexported-no-mangle.stderr
1 warning: lint `private_no_mangle_fns` has been removed: `no longer an warning, #[no_mangle] functions always exported`
2    |
3    = note: requested on the command line with `-F private_no_mangle_fns`
4
5 warning: lint `private_no_mangle_statics` has been removed: `no longer an warning, #[no_mangle] statics always exported`
6    |
7    = note: requested on the command line with `-F private_no_mangle_statics`
8
9 error: const items should never be #[no_mangle]
10   --> $DIR/lint-unexported-no-mangle.rs:19:1
11    |
12 LL | const FOO: u64 = 1; //~ ERROR const items should never be #[no_mangle]
13    | -----^^^^^^^^^^^^^^
14    | |
15    | help: try a static value: `pub static`
16    |
17    = note: requested on the command line with `-F no-mangle-const-items`
18
19 error: const items should never be #[no_mangle]
20   --> $DIR/lint-unexported-no-mangle.rs:22:1
21    |
22 LL | pub const PUB_FOO: u64 = 1; //~ ERROR const items should never be #[no_mangle]
23    | ---------^^^^^^^^^^^^^^^^^^
24    | |
25    | help: try a static value: `pub static`
26
27 error: aborting due to 2 previous errors
28