]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsized-locals/issue-50940-with-feature.rs
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / unsized-locals / issue-50940-with-feature.rs
1 #![feature(unsized_locals, unsized_fn_params)]
2 //~^ WARN the feature `unsized_locals` is incomplete
3
4 fn main() {
5     struct A<X: ?Sized>(X);
6     A as fn(str) -> A<str>;
7     //~^ERROR the size for values of type `str` cannot be known at compilation time
8 }