diff options
Diffstat (limited to 'src/test/ui/closures/closure-bounds-cant-promote-superkind-in-struct.rs')
-rw-r--r-- | src/test/ui/closures/closure-bounds-cant-promote-superkind-in-struct.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/closures/closure-bounds-cant-promote-superkind-in-struct.rs b/src/test/ui/closures/closure-bounds-cant-promote-superkind-in-struct.rs deleted file mode 100644 index 039cf3e04..000000000 --- a/src/test/ui/closures/closure-bounds-cant-promote-superkind-in-struct.rs +++ /dev/null @@ -1,11 +0,0 @@ -struct X<F> where F: FnOnce() + 'static + Send { - field: F, -} - -fn foo<F>(blk: F) -> X<F> where F: FnOnce() + 'static { - //~^ ERROR `F` cannot be sent between threads safely - return X { field: blk }; -} - -fn main() { -} |