summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/in-trait/rpitit-shadowed-by-missing-adt.rs
blob: 7682884f8793165a454f5457c378134425ed8295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// issue: 113903

#![feature(return_position_impl_trait_in_trait)]

use std::ops::Deref;

pub trait Tr {
    fn w() -> impl Deref<Target = Missing<impl Sized>>;
    //~^ ERROR cannot find type `Missing` in this scope
}

impl Tr for () {
    fn w() -> &'static () {
        &()
    }
}

fn main() {}