mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
8 lines
162 B
Rust
8 lines
162 B
Rust
// build-fail
|
|
|
|
fn main() {
|
|
[1][0u64 as usize];
|
|
[1][1.5 as usize]; //~ ERROR operation will panic
|
|
[1][1u64 as usize]; //~ ERROR operation will panic
|
|
}
|