summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/issue-41962.rs
blob: 38a01b138e47dea4bbba8ff00256a5bae8d883bb (plain)
1
2
3
4
5
6
7
8
9
pub fn main(){
    let maybe = Some(vec![true, true]);

    loop {
        if let Some(thing) = maybe {
        }
        //~^^ ERROR use of moved value [E0382]
    }
}