Skip to content

Commit

Permalink
Fix tests that used // | help: annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
fhahn committed Jan 7, 2016
1 parent e8c337b commit 6ce9ac4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
Expand Up @@ -21,5 +21,5 @@ fn main() {
let mut x = Int(0);
x += 1;
//~^ error: overloaded augmented assignments are not stable
// | help: add #![feature(augmented_assignments)] to the crate root to enable
//~| help: add #![feature(augmented_assignments)] to the crate root to enable
}
Expand Up @@ -22,5 +22,5 @@ fn main() {
let mut x = Int(0);
x += 1;
//~^ error: overloaded augmented assignments are not stable
// | help: add #![feature(augmented_assignments)] to the crate root to enable
//~| help: add #![feature(augmented_assignments)] to the crate root to enable
}
Expand Up @@ -33,7 +33,8 @@ fn main() {

f1.foo(1usize);
//~^ error: the trait `Foo<usize>` is not implemented for the type `Bar`
// | help: the following implementations were found:
// | help: implementation 1: `Foo<i32>`
// | help: implementation 2: `Foo<u8>`
//~| help: the following implementations were found:
//~| help: <Bar as Foo<i32>>
//~| help: <Bar as Foo<u8>>
//~| help: run `rustc --explain E0277`
}
13 changes: 7 additions & 6 deletions src/test/compile-fail/issue-21659-show-relevant-trait-impls-2.rs
Expand Up @@ -37,10 +37,11 @@ fn main() {

f1.foo(1usize);
//~^ error: the trait `Foo<usize>` is not implemented for the type `Bar`
// | help: the following implementations were found:
// | help: Foo<i8>
// | help: Foo<i16>
// | help: Foo<i32>
// | help: Foo<u8>
// | help: and 2 others
//~| help: the following implementations were found:
//~| help: <Bar as Foo<i8>>
//~| help: <Bar as Foo<i16>>
//~| help: <Bar as Foo<i32>>
//~| help: <Bar as Foo<u8>>
//~| help: and 2 others
//~| help: run `rustc --explain E0277`
}

0 comments on commit 6ce9ac4

Please sign in to comment.