mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 19:47:38 +00:00
8 lines
116 B
Rust
8 lines
116 B
Rust
![]() |
//@ run-fail
|
||
|
//@ error-pattern:location-add-assign-overflow.rs
|
||
|
|
||
|
fn main() {
|
||
|
let mut a: u8 = 255;
|
||
|
a += &1;
|
||
|
}
|