]>
Commit | Line | Data |
---|---|---|
29967ef6 XL |
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 |