]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/assign-never-type.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / borrowck / assign-never-type.rs
1 // Regression test for issue 62165
2
3 // check-pass
4
5 #![feature(never_type)]
6
7 pub fn main() {
8     loop {
9         match None {
10             None => return,
11             Some(val) => val,
12         };
13     };
14 }