diff options
Diffstat (limited to 'src/test/ui/issues/issue-29522.rs')
-rw-r--r-- | src/test/ui/issues/issue-29522.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/issues/issue-29522.rs b/src/test/ui/issues/issue-29522.rs deleted file mode 100644 index 3d2de5ef6..000000000 --- a/src/test/ui/issues/issue-29522.rs +++ /dev/null @@ -1,17 +0,0 @@ -// run-pass -#![allow(unused_variables)] -// check that we don't accidentally capture upvars just because their name -// occurs in a path - -fn assert_static<T: 'static>(_t: T) {} - -mod foo { - pub fn scope() {} -} - -fn main() { - let scope = &mut 0; - assert_static(|| { - foo::scope(); - }); -} |