]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/x86_64/type-check-4.stderr
Rollup merge of #97325 - tmiasko:capture-enum-field, r=arora-aman
[rust.git] / src / test / ui / asm / x86_64 / type-check-4.stderr
1 error[E0013]: constants cannot refer to statics
2   --> $DIR/type-check-4.rs:22:25
3    |
4 LL | global_asm!("{}", const S);
5    |                         ^
6    |
7    = help: consider extracting the value of the `static` to a `const`, and referring to that
8
9 error[E0013]: constants cannot refer to statics
10   --> $DIR/type-check-4.rs:25:35
11    |
12 LL | global_asm!("{}", const const_foo(S));
13    |                                   ^
14    |
15    = help: consider extracting the value of the `static` to a `const`, and referring to that
16
17 error[E0013]: constants cannot refer to statics
18   --> $DIR/type-check-4.rs:28:35
19    |
20 LL | global_asm!("{}", const const_bar(S));
21    |                                   ^
22    |
23    = help: consider extracting the value of the `static` to a `const`, and referring to that
24
25 error: aborting due to 3 previous errors
26
27 For more information about this error, try `rustc --explain E0013`.