diff options
Diffstat (limited to 'src/test/ui/closure_context/issue-26046-fn-once.rs')
-rw-r--r-- | src/test/ui/closure_context/issue-26046-fn-once.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/closure_context/issue-26046-fn-once.rs b/src/test/ui/closure_context/issue-26046-fn-once.rs deleted file mode 100644 index 511690e9d..000000000 --- a/src/test/ui/closure_context/issue-26046-fn-once.rs +++ /dev/null @@ -1,11 +0,0 @@ -fn get_closure() -> Box<dyn Fn() -> Vec<u8>> { - let vec = vec![1u8, 2u8]; - - let closure = move || { //~ ERROR expected a closure - vec - }; - - Box::new(closure) -} - -fn main() {} |