]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/pub_const_err.stderr
ty: convert `ErrorHandled::Reported` to `ConstKind::Error`.
[rust.git] / src / test / ui / consts / const-eval / pub_const_err.stderr
1 warning: any use of this value will cause an error
2   --> $DIR/pub_const_err.rs:6:20
3    |
4 LL | pub const Z: u32 = 0 - 1;
5    | -------------------^^^^^-
6    |                    |
7    |                    attempt to subtract with overflow
8    |
9 note: the lint level is defined here
10   --> $DIR/pub_const_err.rs:2:9
11    |
12 LL | #![warn(const_err)]
13    |         ^^^^^^^^^
14
15 warning: 1 warning emitted
16