diff options
Diffstat (limited to 'src/test/ui/borrowck/immut-function-arguments.rs')
-rw-r--r-- | src/test/ui/borrowck/immut-function-arguments.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/test/ui/borrowck/immut-function-arguments.rs b/src/test/ui/borrowck/immut-function-arguments.rs deleted file mode 100644 index 242a33e82..000000000 --- a/src/test/ui/borrowck/immut-function-arguments.rs +++ /dev/null @@ -1,9 +0,0 @@ -fn f(y: Box<isize>) { - *y = 5; //~ ERROR cannot assign -} - -fn g() { - let _frob = |q: Box<isize>| { *q = 2; }; //~ ERROR cannot assign -} - -fn main() {} |