1 // Regression test for #51117 in borrowck interaction with match
2 // default bindings. The borrow of `*bar` created by `baz` was failing
3 // to register as a conflict with `bar.take()`.
6 let mut foo = Some("foo".to_string());
10 bar.take(); //~ ERROR cannot borrow
13 None => unreachable!(),