]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-44239.stderr
Auto merge of #80790 - JohnTitor:rollup-js1noez, r=JohnTitor
[rust.git] / src / test / ui / issues / issue-44239.stderr
1 error[E0435]: attempt to use a non-constant value in a constant
2   --> $DIR/issue-44239.rs:6:26
3    |
4 LL |     let n = 0;
5    |         - help: consider using `const` instead of `let`
6 ...
7 LL |         const N: usize = n;
8    |                          ^ non-constant value
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0435`.