]> git.lizzy.rs Git - rust.git/blob - src/test/ui/methods/method-ambig-two-traits-from-bounds.rs
Rollup merge of #102055 - c410-f3r:moar-errors, r=petrochenkov
[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() {}