diff options
Diffstat (limited to 'tests/ui/unsized-locals/issue-30276-feature-flagged.rs')
-rw-r--r-- | tests/ui/unsized-locals/issue-30276-feature-flagged.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/unsized-locals/issue-30276-feature-flagged.rs b/tests/ui/unsized-locals/issue-30276-feature-flagged.rs new file mode 100644 index 000000000..635d34f82 --- /dev/null +++ b/tests/ui/unsized-locals/issue-30276-feature-flagged.rs @@ -0,0 +1,8 @@ +#![feature(unsized_locals)] +//~^ WARN the feature `unsized_locals` is incomplete + +struct Test([i32]); + +fn main() { + let _x: fn(_) -> Test = Test; +} //~^the size for values of type `[i32]` cannot be known at compilation time |