]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/rpit-not-sized.rs
Fix #106496, suggest remove deref for type mismatch
[rust.git] / tests / ui / impl-trait / rpit-not-sized.rs
1 fn foo() -> impl ?Sized {
2     //~^ ERROR the size for values of type `impl ?Sized` cannot be known at compilation time
3     ()
4 }
5
6 fn main() {}