summaryrefslogtreecommitdiffstats
path: root/tests/ui/attr-usage-inline.stderr
blob: 22a0bf47e202676fdd3d2ea849096268cd24870d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0518]: attribute should be applied to function or closure
  --> $DIR/attr-usage-inline.rs:6:1
   |
LL | #[inline]
   | ^^^^^^^^^
LL | struct S;
   | --------- not a function or closure

error[E0518]: attribute should be applied to function or closure
  --> $DIR/attr-usage-inline.rs:20:1
   |
LL | #[inline]
   | ^^^^^^^^^ not a function or closure

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0518`.