]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsized-locals/issue-50940.rs
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[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 }