Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
14
tests/ui/rfcs/rfc-2005-default-binding-mode/reset-mode.rs
Normal file
14
tests/ui/rfcs/rfc-2005-default-binding-mode/reset-mode.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// run-pass
|
||||
// Test that we "reset" the mode as we pass through a `&` pattern.
|
||||
//
|
||||
// cc #46688
|
||||
|
||||
fn surprise(x: i32) {
|
||||
assert_eq!(x, 2);
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let x = &(1, &2);
|
||||
let (_, &b) = x;
|
||||
surprise(b);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue