diff options
Diffstat (limited to 'src/test/compile-fail/trait-cast.rs')
| -rw-r--r-- | src/test/compile-fail/trait-cast.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/compile-fail/trait-cast.rs b/src/test/compile-fail/trait-cast.rs index 9e15a31d95a..43c16984bb6 100644 --- a/src/test/compile-fail/trait-cast.rs +++ b/src/test/compile-fail/trait-cast.rs @@ -3,6 +3,9 @@ trait foo<T> { } fn bar(x: foo<uint>) -> foo<int> { return (x as foo::<int>); //~^ ERROR mismatched types: expected `@foo<int>` but found `@foo<uint>` + //~^^ ERROR mismatched types: expected `@foo<int>` but found `@foo<uint>` + // This is unfortunate -- new handling of parens means the error message + // gets printed twice } fn main() {} |
