diff options
Diffstat (limited to 'tests/ui/unsized-locals/issue-50940-with-feature.rs')
-rw-r--r-- | tests/ui/unsized-locals/issue-50940-with-feature.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/unsized-locals/issue-50940-with-feature.rs b/tests/ui/unsized-locals/issue-50940-with-feature.rs new file mode 100644 index 000000000..63b0e830b --- /dev/null +++ b/tests/ui/unsized-locals/issue-50940-with-feature.rs @@ -0,0 +1,8 @@ +#![feature(unsized_locals, unsized_fn_params)] +//~^ WARN the feature `unsized_locals` is incomplete + +fn main() { + struct A<X: ?Sized>(X); + A as fn(str) -> A<str>; + //~^ERROR the size for values of type `str` cannot be known at compilation time +} |