Skip to content

Commit 6eb0218

Browse files
updated unit test!
1 parent a403ddf commit 6eb0218

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,22 @@ pub trait BoxCar : Box + Vehicle {
2828

2929
fn dent<C:BoxCar>(c: C, color: C::Color) {
3030
//~^ ERROR ambiguous associated type `Color` in bounds of `C`
31+
//~| NOTE ambiguous associated type `Color`
3132
//~| NOTE could derive from `Vehicle`
3233
//~| NOTE could derive from `Box`
3334
}
3435

3536
fn dent_object<COLOR>(c: BoxCar<Color=COLOR>) {
3637
//~^ ERROR ambiguous associated type
3738
//~| ERROR the value of the associated type `Color` (from the trait `Vehicle`) must be specified
39+
//~| NOTE ambiguous associated type `Color`
3840
//~| NOTE could derive from `Vehicle`
3941
//~| NOTE could derive from `Box`
4042
}
4143

4244
fn paint<C:BoxCar>(c: C, d: C::Color) {
4345
//~^ ERROR ambiguous associated type `Color` in bounds of `C`
46+
//~| NOTE ambiguous associated type `Color`
4447
//~| NOTE could derive from `Vehicle`
4548
//~| NOTE could derive from `Box`
4649
}

0 commit comments

Comments
 (0)