]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/fallback_inference.rs
Rollup merge of #106097 - mejrs:mir_build2, r=oli-obk
[rust.git] / tests / ui / impl-trait / fallback_inference.rs
1 use std::marker::PhantomData;
2
3 fn weird() -> PhantomData<impl Sized> {
4     PhantomData //~ ERROR type annotations needed
5 }
6
7 fn main() {}