about summary refs log tree commit diff
path: root/tests/ui/attributes/inline/attr-usage-inline.stderr
blob: 9fca17d90ca134e1e58d3eb13d74f9302c96c858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: `#[inline]` attribute cannot be used on structs
  --> $DIR/attr-usage-inline.rs:7:1
   |
LL | #[inline]
   | ^^^^^^^^^
   |
   = help: `#[inline]` can only be applied to functions

error[E0518]: attribute should be applied to function or closure
  --> $DIR/attr-usage-inline.rs:21: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`.