1 error[E0013]: constants cannot refer to statics, use a constant instead
2 --> $DIR/issue-17718-references.rs:9:28
4 LL | const T2: &'static usize = &S; //~ ERROR: constants cannot refer to statics
7 error[E0013]: constants cannot refer to statics, use a constant instead
8 --> $DIR/issue-17718-references.rs:14:19
10 LL | const T6: usize = S; //~ ERROR: constants cannot refer to statics
13 error[E0013]: constants cannot refer to statics, use a constant instead
14 --> $DIR/issue-17718-references.rs:19:33
16 LL | const T10: Struct = Struct { a: S };
19 error: aborting due to 3 previous errors
21 For more information about this error, try `rustc --explain E0013`.