diff options
Diffstat (limited to 'tests/ui/unsized-locals/issue-50940.rs')
-rw-r--r-- | tests/ui/unsized-locals/issue-50940.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/unsized-locals/issue-50940.rs b/tests/ui/unsized-locals/issue-50940.rs new file mode 100644 index 000000000..7ba809b7e --- /dev/null +++ b/tests/ui/unsized-locals/issue-50940.rs @@ -0,0 +1,5 @@ +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 +} |