fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0013]: constants cannot refer to statics 2 --> $DIR/issue-17718-references.rs:9:29 3 | 4LL | const T2: &'static usize = &S; 5 | ^ 6 | 7 = help: consider extracting the value of the `static` to a `const`, and referring to that 8 9error[E0013]: constants cannot refer to statics 10 --> $DIR/issue-17718-references.rs:14:19 11 | 12LL | const T6: usize = S; 13 | ^ 14 | 15 = help: consider extracting the value of the `static` to a `const`, and referring to that 16 17error[E0013]: constants cannot refer to statics 18 --> $DIR/issue-17718-references.rs:19:33 19 | 20LL | const T10: Struct = Struct { a: S }; 21 | ^ 22 | 23 = help: consider extracting the value of the `static` to a `const`, and referring to that 24 25error: aborting due to 3 previous errors 26 27For more information about this error, try `rustc --explain E0013`.