summaryrefslogtreecommitdiffstats
path: root/src/test/ui/attr-usage-inline.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/attr-usage-inline.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/attr-usage-inline.stderr b/src/test/ui/attr-usage-inline.stderr
new file mode 100644
index 000000000..22a0bf47e
--- /dev/null
+++ b/src/test/ui/attr-usage-inline.stderr
@@ -0,0 +1,17 @@
+error[E0518]: attribute should be applied to function or closure
+ --> $DIR/attr-usage-inline.rs:6:1
+ |
+LL | #[inline]
+ | ^^^^^^^^^
+LL | struct S;
+ | --------- not a function or closure
+
+error[E0518]: attribute should be applied to function or closure
+ --> $DIR/attr-usage-inline.rs:20: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`.