fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
675 B21 linesraw
1error[E0013]: constants cannot refer to statics, use a constant instead
2  --> $DIR/issue-17718-references.rs:9:29
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`.