]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-3521.stderr
Rollup merge of #106397 - compiler-errors:new-solver-impl-wc, r=lcnr
[rust.git] / tests / ui / consts / issue-3521.stderr
1 error[E0435]: attempt to use a non-constant value in a constant
2   --> $DIR/issue-3521.rs:8:15
3    |
4 LL |     let foo: isize = 100;
5    |     ------- help: consider using `const` instead of `let`: `const foo`
6 ...
7 LL |         Bar = foo
8    |               ^^^ non-constant value
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0435`.