Skip to content

Commit 928bb2b

Browse files
committed
Improve test to include a projection, per @huonw's suggestion.
1 parent 57aaa9b commit 928bb2b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/compile-fail/associated-type-projection-from-multiple-supertraits.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,10 @@ fn dent_object<COLOR>(c: BoxCar<Color=COLOR>) {
3838
//~^ ERROR ambiguous associated type
3939
}
4040

41+
fn paint<C:BoxCar>(c: C, d: C::Color) {
42+
//~^ ERROR ambiguous associated type `Color` in bounds of `C`
43+
//~| NOTE could derive from `Vehicle`
44+
//~| NOTE could derive from `Box`
45+
}
46+
4147
pub fn main() { }

0 commit comments

Comments
 (0)