]> git.lizzy.rs Git - rust.git/blob - src/test/ui/methods/method-ambig-two-traits-from-bounds.rs
move an `assert!` to the right place
[rust.git] / src / test / ui / methods / method-ambig-two-traits-from-bounds.rs
1 trait A { fn foo(&self); }
2 trait B { fn foo(&self); }
3
4 fn foo<T:A + B>(t: T) {
5     t.foo(); //~ ERROR E0034
6 }
7
8 fn main() {}