File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 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 {
2828
2929fn 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
3536fn 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
4244fn 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}
You can’t perform that action at this time.
0 commit comments