mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
8 lines
163 B
Rust
8 lines
163 B
Rust
fn main() {
|
|
let x: u8 = 256;
|
|
//~^ error: literal out of range for `u8`
|
|
|
|
for _ in 0..256u8 {}
|
|
//~^ error: range endpoint is out of range for `u8`
|
|
}
|