about summary refs log tree commit diff
path: root/tests/ui/extern/extern-no-mangle.stderr
blob: 69c4fbb935db6aa88323a018b5dcd96b4aca75a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
warning: `#[no_mangle]` attribute cannot be used on foreign statics
  --> $DIR/extern-no-mangle.rs:11:5
   |
LL |     #[no_mangle]
   |     ^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = help: `#[no_mangle]` can be applied to functions and statics
note: the lint level is defined here
  --> $DIR/extern-no-mangle.rs:1:9
   |
LL | #![warn(unused_attributes)]
   |         ^^^^^^^^^^^^^^^^^

warning: `#[no_mangle]` attribute cannot be used on foreign functions
  --> $DIR/extern-no-mangle.rs:16:5
   |
LL |     #[no_mangle]
   |     ^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = help: `#[no_mangle]` can be applied to methods, functions, and statics

warning: `#[no_mangle]` attribute cannot be used on statements
  --> $DIR/extern-no-mangle.rs:24:5
   |
LL |     #[no_mangle]
   |     ^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = help: `#[no_mangle]` can be applied to functions and statics

warning: 3 warnings emitted