]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17718-references.stderr
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-17718-references.stderr
1 error[E0013]: constants cannot refer to statics, use a constant instead
2   --> $DIR/issue-17718-references.rs:9:28
3    |
4 LL | const T2: &'static usize = &S; //~ ERROR: constants cannot refer to statics
5    |                            ^^
6
7 error[E0013]: constants cannot refer to statics, use a constant instead
8   --> $DIR/issue-17718-references.rs:14:19
9    |
10 LL | const T6: usize = S; //~ ERROR: constants cannot refer to statics
11    |                   ^
12
13 error[E0013]: constants cannot refer to statics, use a constant instead
14   --> $DIR/issue-17718-references.rs:19:33
15    |
16 LL | const T10: Struct = Struct { a: S };
17    |                                 ^
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0013`.