about summary refs log tree commit diff
path: root/tests/ui/issues/issue-31769.stderr
blob: 0f75e84f2a704f945391653f34ce51585b1d33db (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/issue-31769.rs:2:5
   |
LL |     #[inline] struct Foo;
   |     ^^^^^^^^^
   |
   = help: `#[inline]` can only be applied to functions

error[E0517]: attribute should be applied to a struct, enum, or union
  --> $DIR/issue-31769.rs:3:12
   |
LL |     #[repr(C)] fn foo() {}
   |            ^   ----------- not a struct, enum, or union

error: aborting due to 2 previous errors

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