]> git.lizzy.rs Git - rust.git/blob - tests/ui/attr-usage-inline.stderr
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / ui / attr-usage-inline.stderr
1 error[E0518]: attribute should be applied to function or closure
2   --> $DIR/attr-usage-inline.rs:6:1
3    |
4 LL | #[inline]
5    | ^^^^^^^^^
6 LL | struct S;
7    | --------- not a function or closure
8
9 error[E0518]: attribute should be applied to function or closure
10   --> $DIR/attr-usage-inline.rs:20:1
11    |
12 LL | #[inline]
13    | ^^^^^^^^^ not a function or closure
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0518`.