about summary refs log tree commit diff
path: root/tests/ui/attributes/positions/used.stderr
blob: 79011f3a758f5bae49e689f552321f6f10bfe32c (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
35
36
37
38
39
40
41
42
error: `#[used]` attribute cannot be used on functions
  --> $DIR/used.rs:7:1
   |
LL | #[used]
   | ^^^^^^^
   |
   = help: `#[used]` can only be applied to statics

error: `#[used]` attribute cannot be used on structs
  --> $DIR/used.rs:10:1
   |
LL | #[used]
   | ^^^^^^^
   |
   = help: `#[used]` can only be applied to statics

error: `#[used]` attribute cannot be used on traits
  --> $DIR/used.rs:13:1
   |
LL | #[used]
   | ^^^^^^^
   |
   = help: `#[used]` can only be applied to statics

error: `#[used]` attribute cannot be used on trait impl blocks
  --> $DIR/used.rs:16:1
   |
LL | #[used]
   | ^^^^^^^
   |
   = help: `#[used]` can only be applied to statics

error: `#[used]` attribute cannot be used on foreign statics
  --> $DIR/used.rs:21:5
   |
LL |     #[used]
   |     ^^^^^^^
   |
   = help: `#[used]` can only be applied to statics

error: aborting due to 5 previous errors