diff options
Diffstat (limited to 'tests/ui/error-codes/E0596.rs')
-rw-r--r-- | tests/ui/error-codes/E0596.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0596.rs b/tests/ui/error-codes/E0596.rs new file mode 100644 index 000000000..9e2f5ee76 --- /dev/null +++ b/tests/ui/error-codes/E0596.rs @@ -0,0 +1,4 @@ +fn main() { + let x = 1; + let y = &mut x; //~ ERROR [E0596] +} |