diff options
Diffstat (limited to 'tests/ui/generator/unsized-local-across-yield.rs')
-rw-r--r-- | tests/ui/generator/unsized-local-across-yield.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/ui/generator/unsized-local-across-yield.rs b/tests/ui/generator/unsized-local-across-yield.rs deleted file mode 100644 index f761f45c2..000000000 --- a/tests/ui/generator/unsized-local-across-yield.rs +++ /dev/null @@ -1,21 +0,0 @@ -#![feature(generator_trait)] -#![feature(generators)] -#![feature(unsized_locals)] -//~^ WARN the feature `unsized_locals` is incomplete and may not be safe to use and/or cause compiler crashes - -use std::ops::Generator; - -fn across() -> impl Generator { - move || { - let b: [u8] = *(Box::new([]) as Box<[u8]>); - //~^ ERROR the size for values of type `[u8]` cannot be known at compilation time - - yield; - - for elem in b.iter() {} - } -} - -fn main() { - across(); -} |