summaryrefslogtreecommitdiffstats
path: root/src/test/ui/asm/aarch64/type-check-4.stderr
blob: 4837e647beae12be570edd4d61f3dea736ede9d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
error[E0013]: constants cannot refer to statics
  --> $DIR/type-check-4.rs:25: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:28: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:31: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`.