rust/src/test/auxiliary/trait_inheritance_auto_xc_aux.rs
2012-12-07 15:54:17 -08:00

8 lines
150 B
Rust

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 { }