diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-move-in-irrefut-pat.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-move-in-irrefut-pat.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/borrowck/borrowck-move-in-irrefut-pat.rs b/src/test/ui/borrowck/borrowck-move-in-irrefut-pat.rs deleted file mode 100644 index f4f402dd9..000000000 --- a/src/test/ui/borrowck/borrowck-move-in-irrefut-pat.rs +++ /dev/null @@ -1,16 +0,0 @@ -fn with<F>(f: F) where F: FnOnce(&String) {} - -fn arg_item(&_x: &String) {} - //~^ ERROR [E0507] - -fn arg_closure() { - with(|&_x| ()) - //~^ ERROR [E0507] -} - -fn let_pat() { - let &_x = &"hi".to_string(); - //~^ ERROR [E0507] -} - -pub fn main() {} |