]> git.lizzy.rs Git - rust.git/blob - tests/ui/reachable/expr_repeat.rs
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / ui / reachable / expr_repeat.rs
1 #![allow(unused_variables)]
2 #![allow(unused_assignments)]
3 #![allow(dead_code)]
4 #![deny(unreachable_code)]
5 #![feature(type_ascription)]
6
7 fn a() {
8     // the repeat is unreachable:
9     let x: [usize; 2] = [return; 2]; //~ ERROR unreachable
10 }
11
12 fn main() { }