diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-borrow-immut-deref-of-box-as-mut.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-borrow-immut-deref-of-box-as-mut.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/borrowck/borrowck-borrow-immut-deref-of-box-as-mut.rs b/src/test/ui/borrowck/borrowck-borrow-immut-deref-of-box-as-mut.rs deleted file mode 100644 index 6b5544a8a..000000000 --- a/src/test/ui/borrowck/borrowck-borrow-immut-deref-of-box-as-mut.rs +++ /dev/null @@ -1,14 +0,0 @@ -struct A; - -impl A { - fn foo(&mut self) { - } -} - - - -pub fn main() { - let a: Box<_> = Box::new(A); - a.foo(); - //~^ ERROR cannot borrow `*a` as mutable, as `a` is not declared as mutable [E0596] -} |