]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const_prop/inline_spans.stderr
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / const_prop / inline_spans.stderr
1 error: this arithmetic operation will overflow
2 --> $DIR/inline_spans.rs:7:13
3 |
4 LL | let _ = add(u8::MAX, 1);
5 | ^^^^^^^^^^^^^^^ attempt to compute `u8::MAX + 1_u8`, which would overflow
6 ...
7 LL | x + y
8 | ----- in the inlined copy of this code
9 |
10 = note: `#[deny(arithmetic_overflow)]` on by default
11
12 error: aborting due to previous error
13