rust/src/test/ui/issues/issue-17718-references.stderr

22 lines
765 B
Plaintext
Raw Normal View History

2018-07-15 16:11:54 -05:00
error[E0013]: constants cannot refer to statics, use a constant instead
2018-12-25 09:56:47 -06:00
--> $DIR/issue-17718-references.rs:9:28
2018-07-15 16:11:54 -05:00
|
LL | const T2: &'static usize = &S; //~ ERROR: constants cannot refer to statics
| ^^
error[E0013]: constants cannot refer to statics, use a constant instead
2018-12-25 09:56:47 -06:00
--> $DIR/issue-17718-references.rs:14:19
2018-07-15 16:11:54 -05:00
|
LL | const T6: usize = S; //~ ERROR: constants cannot refer to statics
| ^
error[E0013]: constants cannot refer to statics, use a constant instead
2018-12-25 09:56:47 -06:00
--> $DIR/issue-17718-references.rs:19:33
2018-07-15 16:11:54 -05:00
|
LL | const T10: Struct = Struct { a: S };
| ^
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0013`.