fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0013]: constants cannot refer to statics, use a constant instead 2 --> $DIR/issue-17718-references.rs:9:28 3 | 4LL | const T2: &'static usize = &S; 5 | ^^ 6 7error[E0013]: constants cannot refer to statics, use a constant instead 8 --> $DIR/issue-17718-references.rs:14:19 9 | 10LL | const T6: usize = S; 11 | ^ 12 13error[E0013]: constants cannot refer to statics, use a constant instead 14 --> $DIR/issue-17718-references.rs:19:33 15 | 16LL | const T10: Struct = Struct { a: S }; 17 | ^ 18 19error: aborting due to 3 previous errors 20 21For more information about this error, try `rustc --explain E0013`.