summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-used_with_arg.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/feature-gates/feature-gate-used_with_arg.stderr')
-rw-r--r--src/test/ui/feature-gates/feature-gate-used_with_arg.stderr21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-used_with_arg.stderr b/src/test/ui/feature-gates/feature-gate-used_with_arg.stderr
new file mode 100644
index 000000000..d115bf4e3
--- /dev/null
+++ b/src/test/ui/feature-gates/feature-gate-used_with_arg.stderr
@@ -0,0 +1,21 @@
+error[E0658]: `#[used(linker)]` is currently unstable
+ --> $DIR/feature-gate-used_with_arg.rs:1:1
+ |
+LL | #[used(linker)]
+ | ^^^^^^^^^^^^^^^
+ |
+ = note: see issue #93798 <https://github.com/rust-lang/rust/issues/93798> for more information
+ = help: add `#![feature(used_with_arg)]` to the crate attributes to enable
+
+error[E0658]: `#[used(compiler)]` is currently unstable
+ --> $DIR/feature-gate-used_with_arg.rs:4:1
+ |
+LL | #[used(compiler)]
+ | ^^^^^^^^^^^^^^^^^
+ |
+ = note: see issue #93798 <https://github.com/rust-lang/rust/issues/93798> for more information
+ = help: add `#![feature(used_with_arg)]` to the crate attributes to enable
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0658`.