Improve test to include a projection, per @huonw's suggestion.

This commit is contained in:
Niko Matsakis 2015-01-05 09:14:03 -05:00
parent 57aaa9bf87
commit 928bb2be8f

View File

@ -38,4 +38,10 @@ fn dent_object<COLOR>(c: BoxCar<Color=COLOR>) {
//~^ ERROR ambiguous associated type
}
fn paint<C:BoxCar>(c: C, d: C::Color) {
//~^ ERROR ambiguous associated type `Color` in bounds of `C`
//~| NOTE could derive from `Vehicle`
//~| NOTE could derive from `Box`
}
pub fn main() { }