]> git.lizzy.rs Git - rust.git/blob - src/test/ui/methods/method-ambig-two-traits-from-bounds.rs
Auto merge of #101837 - scottmcm:box-array-from-vec, r=m-ou-se
[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() {}