1 error[E0013]: constants cannot refer to statics
2 --> $DIR/type-check-4.rs:22:25
4 LL | global_asm!("{}", const S);
7 = help: consider extracting the value of the `static` to a `const`, and referring to that
9 error[E0013]: constants cannot refer to statics
10 --> $DIR/type-check-4.rs:25:35
12 LL | global_asm!("{}", const const_foo(S));
15 = help: consider extracting the value of the `static` to a `const`, and referring to that
17 error[E0013]: constants cannot refer to statics
18 --> $DIR/type-check-4.rs:28:35
20 LL | global_asm!("{}", const const_bar(S));
23 = help: consider extracting the value of the `static` to a `const`, and referring to that
25 error: aborting due to 3 previous errors
27 For more information about this error, try `rustc --explain E0013`.