diff options
Diffstat (limited to 'src/test/ui/borrowck/regions-escape-unboxed-closure.rs')
-rw-r--r-- | src/test/ui/borrowck/regions-escape-unboxed-closure.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/test/ui/borrowck/regions-escape-unboxed-closure.rs b/src/test/ui/borrowck/regions-escape-unboxed-closure.rs deleted file mode 100644 index f01e47122..000000000 --- a/src/test/ui/borrowck/regions-escape-unboxed-closure.rs +++ /dev/null @@ -1,7 +0,0 @@ -fn with_int(f: &mut dyn FnMut(&isize)) {} - -fn main() { - let mut x: Option<&isize> = None; - with_int(&mut |y| x = Some(y)); - //~^ ERROR borrowed data escapes outside of closure -} |