summaryrefslogtreecommitdiffstats
path: root/src/test/ui/used.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/used.stderr')
-rw-r--r--src/test/ui/used.stderr26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/test/ui/used.stderr b/src/test/ui/used.stderr
new file mode 100644
index 000000000..ea77f129d
--- /dev/null
+++ b/src/test/ui/used.stderr
@@ -0,0 +1,26 @@
+error: attribute must be applied to a `static` variable
+ --> $DIR/used.rs:4:1
+ |
+LL | #[used]
+ | ^^^^^^^
+
+error: attribute must be applied to a `static` variable
+ --> $DIR/used.rs:7:1
+ |
+LL | #[used]
+ | ^^^^^^^
+
+error: attribute must be applied to a `static` variable
+ --> $DIR/used.rs:10:1
+ |
+LL | #[used]
+ | ^^^^^^^
+
+error: attribute must be applied to a `static` variable
+ --> $DIR/used.rs:13:1
+ |
+LL | #[used]
+ | ^^^^^^^
+
+error: aborting due to 4 previous errors
+