]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-eval/issue-50814.stderr
New upstream version 1.32.0~beta.2+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / issue-50814.stderr
CommitLineData
a1dfa0c6
XL
1error: any use of this value will cause an error
2 --> $DIR/issue-50814.rs:23:5
3 |
4LL | const MAX: u8 = A::MAX + B::MAX; //~ ERROR any use of this value will cause an error
5 | ^^^^^^^^^^^^^^^^---------------^
6 | |
7 | attempt to add with overflow
94b46f34 8 |
a1dfa0c6 9 = note: #[deny(const_err)] on by default
94b46f34 10
a1dfa0c6 11error[E0080]: evaluation of constant expression failed
94b46f34
XL
12 --> $DIR/issue-50814.rs:27:5
13 |
a1dfa0c6 14LL | &Sum::<U8,U8>::MAX //~ ERROR E0080
94b46f34
XL
15 | ^-----------------
16 | |
17 | referenced constant has errors
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0080`.