1 error[E0013]: constants cannot refer to statics
2 --> $DIR/issue-17718-references.rs:9:29
4 LL | const T2: &'static usize = &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/issue-17718-references.rs:14:19
12 LL | const T6: usize = 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/issue-17718-references.rs:19:33
20 LL | const T10: Struct = Struct { a: 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`.