]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2005-default-binding-mode/issue-44912-or.rs
Remove licenses
[rust.git] / src / test / ui / rfc-2005-default-binding-mode / issue-44912-or.rs
1 // FIXME(tschottdorf): This should compile. See #44912.
2
3 pub fn main() {
4     let x = &Some((3, 3));
5     let _: &i32 = match x {
6         Some((x, 3)) | &Some((ref x, 5)) => x,
7         //~^ ERROR is bound in inconsistent ways
8         _ => &5i32,
9     };
10 }