summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0518.stderr
blob: d8feec9914068c06e5da00b5cccb27902c3b22e8 (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
  --> $DIR/E0518.rs:11:1
   |
LL | #[inline(always)] //~ ERROR: E0518
   | ^^^^^^^^^^^^^^^^^
LL | struct Foo;
   | ----------- not a function

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

error: aborting due to 2 previous errors

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