File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -28,19 +28,22 @@ pub trait BoxCar : Box + Vehicle {
28
28
29
29
fn dent < C : BoxCar > ( c : C , color : C :: Color ) {
30
30
//~^ ERROR ambiguous associated type `Color` in bounds of `C`
31
+ //~| NOTE ambiguous associated type `Color`
31
32
//~| NOTE could derive from `Vehicle`
32
33
//~| NOTE could derive from `Box`
33
34
}
34
35
35
36
fn dent_object < COLOR > ( c : BoxCar < Color =COLOR > ) {
36
37
//~^ ERROR ambiguous associated type
37
38
//~| ERROR the value of the associated type `Color` (from the trait `Vehicle`) must be specified
39
+ //~| NOTE ambiguous associated type `Color`
38
40
//~| NOTE could derive from `Vehicle`
39
41
//~| NOTE could derive from `Box`
40
42
}
41
43
42
44
fn paint < C : BoxCar > ( c : C , d : C :: Color ) {
43
45
//~^ ERROR ambiguous associated type `Color` in bounds of `C`
46
+ //~| NOTE ambiguous associated type `Color`
44
47
//~| NOTE could derive from `Vehicle`
45
48
//~| NOTE could derive from `Box`
46
49
}
You can’t perform that action at this time.
0 commit comments