diff options
Diffstat (limited to 'src/test/ui/pattern/bindings-after-at/nested-binding-modes-ref.rs')
-rw-r--r-- | src/test/ui/pattern/bindings-after-at/nested-binding-modes-ref.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/pattern/bindings-after-at/nested-binding-modes-ref.rs b/src/test/ui/pattern/bindings-after-at/nested-binding-modes-ref.rs deleted file mode 100644 index adfb0387f..000000000 --- a/src/test/ui/pattern/bindings-after-at/nested-binding-modes-ref.rs +++ /dev/null @@ -1,11 +0,0 @@ -fn main() { - let ref is_ref @ is_val = 42; - *is_ref; - *is_val; - //~^ ERROR cannot be dereferenced - - let is_val @ ref is_ref = 42; - *is_ref; - *is_val; - //~^ ERROR cannot be dereferenced -} |