summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/issue-84398.rs
blob: 1912fa59b79905af603e5e76fbdbbcc734a8f7e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// check-pass

pub trait Deserialize<'de>: Sized {}
pub trait DeserializeOwned: for<'de> Deserialize<'de> {}

pub trait Extensible {
    type Config;
}

// The `C` here generates a `C: Sized` candidate
pub trait Installer<C> {
    fn init<B: Extensible<Config = C>>(&mut self) -> ()
    where
        // This clause generates a `for<'de> C: Sized` candidate
        B::Config: DeserializeOwned,
    {
    }
}

fn main() {}