]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-issue-2657-2.fixed
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / borrowck-issue-2657-2.fixed
1 // run-rustfix
2 fn main() {
3
4     let x: Option<Box<_>> = Some(Box::new(1));
5
6     match x {
7       Some(ref y) => {
8         let _b = y; //~ ERROR cannot move out
9       }
10       _ => {}
11     }
12 }