os-rust/tests/ui/consts/issue-3521.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
378 B
Text
Raw Normal View History

2018-07-15 14:11:54 -07:00
error[E0435]: attempt to use a non-constant value in a constant
--> $DIR/issue-3521.rs:8:15
2018-07-15 14:11:54 -07:00
|
LL | Bar = foo
| ^^^ non-constant value
|
help: consider using `const` instead of `let`
|
LL | const foo: isize = 100;
| ~~~~~
2018-07-15 14:11:54 -07:00
error: aborting due to 1 previous error
2018-07-15 14:11:54 -07:00
For more information about this error, try `rustc --explain E0435`.