From 928bb2be8fee3600db086cfa94775ac9110937e2 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Mon, 5 Jan 2015 09:14:03 -0500 Subject: [PATCH] Improve test to include a projection, per @huonw's suggestion. --- .../associated-type-projection-from-multiple-supertraits.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/compile-fail/associated-type-projection-from-multiple-supertraits.rs b/src/test/compile-fail/associated-type-projection-from-multiple-supertraits.rs index 553e36f0e62d..6555aa320277 100644 --- a/src/test/compile-fail/associated-type-projection-from-multiple-supertraits.rs +++ b/src/test/compile-fail/associated-type-projection-from-multiple-supertraits.rs @@ -38,4 +38,10 @@ fn dent_object(c: BoxCar) { //~^ ERROR ambiguous associated type } +fn paint(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() { }