]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsized-locals/issue-50940-with-feature.rs
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / 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 }