mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
13 lines
255 B
Rust
13 lines
255 B
Rust
#![allow(unused_variables)]
|
|
#![allow(unused_assignments)]
|
|
#![allow(dead_code)]
|
|
#![deny(unreachable_code)]
|
|
#![feature(type_ascription)]
|
|
|
|
fn a() {
|
|
// the repeat is unreachable:
|
|
let x: [usize; 2] = [return; 2]; //~ ERROR unreachable
|
|
}
|
|
|
|
fn main() { }
|