summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0518.stderr
blob: 27d5d3645fdfc358dd20c034940cb1853aa28ec3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error[E0518]: attribute should be applied to function or closure
  --> $DIR/E0518.rs:11:1
   |
LL | #[inline(always)] //~ ERROR: E0518
   | ^^^^^^^^^^^^^^^^^
LL | struct Foo;
   | ----------- not a function or closure

error[E0518]: attribute should be applied to function or closure
  --> $DIR/E0518.rs:14:1
   |
LL |   #[inline(never)] //~ ERROR: E0518
   |   ^^^^^^^^^^^^^^^^
LL | / impl Foo {
LL | | }
   | |_- not a function or closure

error: aborting due to 2 previous errors

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