]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsized-locals/issue-50940.rs
Rollup merge of #89468 - FabianWolff:issue-89358, r=jackh726
[rust.git] / src / test / ui / unsized-locals / issue-50940.rs
1 fn main() {
2     struct A<X: ?Sized>(X);
3     A as fn(str) -> A<str>;
4     //~^ERROR the size for values of type `str` cannot be known at compilation time
5 }