summaryrefslogtreecommitdiffstats
path: root/src/test/ui/asm/x86_64/type-check-4.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/asm/x86_64/type-check-4.stderr')
-rw-r--r--src/test/ui/asm/x86_64/type-check-4.stderr27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/ui/asm/x86_64/type-check-4.stderr b/src/test/ui/asm/x86_64/type-check-4.stderr
new file mode 100644
index 000000000..33f4638fb
--- /dev/null
+++ b/src/test/ui/asm/x86_64/type-check-4.stderr
@@ -0,0 +1,27 @@
+error[E0013]: constants cannot refer to statics
+ --> $DIR/type-check-4.rs:22:25
+ |
+LL | global_asm!("{}", const S);
+ | ^
+ |
+ = help: consider extracting the value of the `static` to a `const`, and referring to that
+
+error[E0013]: constants cannot refer to statics
+ --> $DIR/type-check-4.rs:25:35
+ |
+LL | global_asm!("{}", const const_foo(S));
+ | ^
+ |
+ = help: consider extracting the value of the `static` to a `const`, and referring to that
+
+error[E0013]: constants cannot refer to statics
+ --> $DIR/type-check-4.rs:28:35
+ |
+LL | global_asm!("{}", const const_bar(S));
+ | ^
+ |
+ = help: consider extracting the value of the `static` to a `const`, and referring to that
+
+error: aborting due to 3 previous errors
+
+For more information about this error, try `rustc --explain E0013`.