summaryrefslogtreecommitdiffstats
path: root/src/test/ui/attributes/used_with_arg.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/attributes/used_with_arg.stderr')
-rw-r--r--src/test/ui/attributes/used_with_arg.stderr18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/attributes/used_with_arg.stderr b/src/test/ui/attributes/used_with_arg.stderr
new file mode 100644
index 000000000..440e5c4a5
--- /dev/null
+++ b/src/test/ui/attributes/used_with_arg.stderr
@@ -0,0 +1,18 @@
+error: `used(compiler)` and `used(linker)` can't be used together
+ --> $DIR/used_with_arg.rs:9:1
+ |
+LL | #[used(compiler)]
+ | ^^^^^^^^^^^^^^^^^
+LL | #[used(linker)]
+ | ^^^^^^^^^^^^^^^
+
+error: `used(compiler)` and `used(linker)` can't be used together
+ --> $DIR/used_with_arg.rs:13:1
+ |
+LL | #[used(compiler)]
+ | ^^^^^^^^^^^^^^^^^
+LL | #[used(linker)]
+ | ^^^^^^^^^^^^^^^
+
+error: aborting due to 2 previous errors
+