diff options
Diffstat (limited to 'tests/ui/destructuring-assignment/default-match-bindings-forbidden.rs')
-rw-r--r-- | tests/ui/destructuring-assignment/default-match-bindings-forbidden.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/destructuring-assignment/default-match-bindings-forbidden.rs b/tests/ui/destructuring-assignment/default-match-bindings-forbidden.rs new file mode 100644 index 000000000..ff867c000 --- /dev/null +++ b/tests/ui/destructuring-assignment/default-match-bindings-forbidden.rs @@ -0,0 +1,5 @@ +fn main() { + let mut x = &0; + let mut y = &0; + (x, y) = &(1, 2); //~ ERROR mismatched types +} |