]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0435.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0435.stderr
1 error[E0435]: attempt to use a non-constant value in a constant
2   --> $DIR/E0435.rs:5:17
3    |
4 LL |     let foo: usize = 42;
5    |     ------- help: consider using `const` instead of `let`: `const foo`
6 LL |     let _: [u8; foo];
7    |                 ^^^ non-constant value
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0435`.