]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsized-locals/issue-50940.rs
Rollup merge of #105526 - Xiretza:iter-from-generator-derive, r=scottmcm
[rust.git] / tests / 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 }