diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-imm-ref-to-mut-rec-field-issue-3162-c.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-imm-ref-to-mut-rec-field-issue-3162-c.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/ui/borrowck/borrowck-imm-ref-to-mut-rec-field-issue-3162-c.rs b/src/test/ui/borrowck/borrowck-imm-ref-to-mut-rec-field-issue-3162-c.rs deleted file mode 100644 index 97107c2e3..000000000 --- a/src/test/ui/borrowck/borrowck-imm-ref-to-mut-rec-field-issue-3162-c.rs +++ /dev/null @@ -1,10 +0,0 @@ -fn main() { - let mut _a = 3; - let b = &mut _a; - { - let c = &*b; - _a = 4; //~ ERROR cannot assign to `_a` because it is borrowed - drop(c); - } - drop(b); -} |