]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-41962.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / borrowck / issue-41962.rs
1 pub fn main(){
2     let maybe = Some(vec![true, true]);
3
4     loop {
5         if let Some(thing) = maybe {
6         }
7         //~^^ ERROR use of moved value [E0382]
8     }
9 }