rust/tests/ui/nll/issue-53807.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
151 B
Rust
Raw Normal View History

pub fn main(){
let maybe = Some(vec![true, true]);
2018-11-27 03:56:36 -06:00
loop {
if let Some(thing) = maybe {
//~^ ERROR use of moved value
}
}
}