mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
21 lines
424 B
Rust
21 lines
424 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() {}
|