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