rust/src/test/auxiliary/trait_inheritance_auto_xc_aux.rs

8 lines
150 B
Rust
Raw Normal View History

trait Foo { fn f() -> int; }
trait Bar { fn g() -> int; }
trait Baz { fn h() -> int; }
trait Quux: Foo Bar Baz { }
impl<T: Foo Bar Baz> T: Quux { }