diff options
Diffstat (limited to 'src/test/ui/borrowck/issue-58776-borrowck-scans-children.rs')
-rw-r--r-- | src/test/ui/borrowck/issue-58776-borrowck-scans-children.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/borrowck/issue-58776-borrowck-scans-children.rs b/src/test/ui/borrowck/issue-58776-borrowck-scans-children.rs deleted file mode 100644 index efa313a9d..000000000 --- a/src/test/ui/borrowck/issue-58776-borrowck-scans-children.rs +++ /dev/null @@ -1,11 +0,0 @@ -fn main() { - let mut greeting = "Hello world!".to_string(); - let res = (|| (|| &greeting)())(); - - greeting = "DEALLOCATED".to_string(); - //~^ ERROR cannot assign - drop(greeting); - //~^ ERROR cannot move - - println!("thread result: {:?}", res); -} |