summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-asm_sym.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/feature-gates/feature-gate-asm_sym.stderr')
-rw-r--r--src/test/ui/feature-gates/feature-gate-asm_sym.stderr21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-asm_sym.stderr b/src/test/ui/feature-gates/feature-gate-asm_sym.stderr
new file mode 100644
index 000000000..d4b16f60b
--- /dev/null
+++ b/src/test/ui/feature-gates/feature-gate-asm_sym.stderr
@@ -0,0 +1,21 @@
+error[E0658]: sym operands for inline assembly are unstable
+ --> $DIR/feature-gate-asm_sym.rs:9:29
+ |
+LL | asm!("mov eax, {}", sym bar::<N>);
+ | ^^^^^^^^^^^^
+ |
+ = note: see issue #93333 <https://github.com/rust-lang/rust/issues/93333> for more information
+ = help: add `#![feature(asm_sym)]` to the crate attributes to enable
+
+error[E0658]: sym operands for inline assembly are unstable
+ --> $DIR/feature-gate-asm_sym.rs:16:29
+ |
+LL | asm!("mov eax, {}", sym foo::<0>);
+ | ^^^^^^^^^^^^
+ |
+ = note: see issue #93333 <https://github.com/rust-lang/rust/issues/93333> for more information
+ = help: add `#![feature(asm_sym)]` to the crate attributes to enable
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0658`.