]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/issue-50814.stderr
Auto merge of #81440 - tmiasko:always-live-locals, r=matthewjasper
[rust.git] / src / test / ui / consts / const-eval / issue-50814.stderr
1 error: any use of this value will cause an error
2   --> $DIR/issue-50814.rs:15:21
3    |
4 LL |     const MAX: u8 = A::MAX + B::MAX;
5    |     ----------------^^^^^^^^^^^^^^^-
6    |                     |
7    |                     attempt to compute `u8::MAX + u8::MAX`, which would overflow
8    |
9    = note: `#[deny(const_err)]` on by default
10
11 error[E0080]: evaluation of constant value failed
12   --> $DIR/issue-50814.rs:20:6
13    |
14 LL |     &Sum::<U8,U8>::MAX
15    |      ^^^^^^^^^^^^^^^^^ referenced constant has errors
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0080`.