summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/fallback_inference.rs
blob: 98f0bd1af2813174a9a2055499adffc91c089249 (plain)
1
2
3
4
5
6
7
use std::marker::PhantomData;

fn weird() -> PhantomData<impl Sized> {
    PhantomData //~ ERROR type annotations needed
}

fn main() {}