summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-53807.rs
blob: d494f7e151dfbc9eec17ad09e40a17963a668613 (plain)
1
2
3
4
5
6
7
8
pub fn main(){
    let maybe = Some(vec![true, true]);
    loop {
        if let Some(thing) = maybe {
//~^ ERROR use of moved value
        }
    }
}