blob: 5a54967e0d05525fa96d54d5f556154672b6862a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
error: this arithmetic operation will overflow
--> $DIR/inline_spans.rs:7:13
|
LL | let _ = add(u8::MAX, 1);
| ^^^^^^^^^^^^^^^ attempt to compute `u8::MAX + 1_u8`, which would overflow
...
LL | x + y
| ----- in the inlined copy of this code
|
= note: `#[deny(arithmetic_overflow)]` on by default
error: aborting due to previous error
|