rust/tests/ui/lifetimes/issue-84398.rs
2023-01-11 09:32:08 +00:00

21 lines
423 B
Rust

// 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() {}