summaryrefslogtreecommitdiffstats
path: root/src/test/ui/regions/outlives-with-missing.rs
blob: 29d89718b5867b4213aa2f708e21a14761006903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
trait HandlerFamily {
    type Target;
}

struct HandlerWrapper<H: HandlerFamily>(H);

impl<H: HandlerFamily> HandlerWrapper<H> {
    pub fn set_handler(&self, handler: &H::Target)
    where
        T: Send + Sync + 'static,
        //~^ ERROR cannot find type `T` in this scope
    {
    }
}

fn main() {}