mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-01 17:57:52 +00:00
8 lines
197 B
Rust
8 lines
197 B
Rust
pub trait Foo { fn f(&self) -> isize; }
|
|
pub trait Bar { fn g(&self) -> isize; }
|
|
pub trait Baz { fn h(&self) -> isize; }
|
|
|
|
pub trait Quux: Foo + Bar + Baz { }
|
|
|
|
impl<T:Foo + Bar + Baz> Quux for T { }
|