]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-31769.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-31769.stderr
1 error[E0518]: attribute should be applied to function or closure
2   --> $DIR/issue-31769.rs:12:5
3    |
4 LL |     #[inline] struct Foo;  //~ ERROR attribute should be applied to function or closure
5    |     ^^^^^^^^^ ----------- not a function or closure
6
7 error[E0517]: attribute should be applied to struct, enum or union
8   --> $DIR/issue-31769.rs:13:12
9    |
10 LL |     #[repr(C)] fn foo() {} //~ ERROR attribute should be applied to struct, enum or union
11    |            ^   ----------- not a struct, enum or union
12
13 error: aborting due to 2 previous errors
14
15 Some errors occurred: E0517, E0518.
16 For more information about an error, try `rustc --explain E0517`.