mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
21 lines
423 B
Rust
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() {}
|