Skip to content

Commit 48f2766

Browse files
committed
enhance borrowck-pat-by-copy-bindings-in-at
1 parent 427b1c3 commit 48f2766

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/ui/pattern/bindings-after-at/borrowck-pat-by-copy-bindings-in-at.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,11 @@ fn main() {
4343
drop(a);
4444
}
4545
}
46+
47+
match Ok(mk_c()) {
48+
Ok(ref a @ b) | Err(b @ ref a) => {
49+
let _: &C = a;
50+
let _: C = b;
51+
}
52+
}
4653
}

0 commit comments

Comments
 (0)