diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-31769.stderr | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-31769.stderr b/src/test/ui/issues/issue-31769.stderr new file mode 100644 index 000000000..03e2f931c --- /dev/null +++ b/src/test/ui/issues/issue-31769.stderr @@ -0,0 +1,16 @@ +error[E0518]: attribute should be applied to function or closure + --> $DIR/issue-31769.rs:2:5 + | +LL | #[inline] struct Foo; + | ^^^^^^^^^ ----------- not a function or closure + +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 + +Some errors have detailed explanations: E0517, E0518. +For more information about an error, try `rustc --explain E0517`. |