Skip to content

Commit 6ce9ac4

Browse files
committed
Fix tests that used // | help: annotations
1 parent e8c337b commit 6ce9ac4

4 files changed

+13
-11
lines changed

src/test/compile-fail/augmented-assignments-feature-gate-cross.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ fn main() {
2121
let mut x = Int(0);
2222
x += 1;
2323
//~^ error: overloaded augmented assignments are not stable
24-
// | help: add #![feature(augmented_assignments)] to the crate root to enable
24+
//~| help: add #![feature(augmented_assignments)] to the crate root to enable
2525
}

src/test/compile-fail/augmented-assignments-feature-gate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ fn main() {
2222
let mut x = Int(0);
2323
x += 1;
2424
//~^ error: overloaded augmented assignments are not stable
25-
// | help: add #![feature(augmented_assignments)] to the crate root to enable
25+
//~| help: add #![feature(augmented_assignments)] to the crate root to enable
2626
}

src/test/compile-fail/issue-21659-show-relevant-trait-impls-1.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ fn main() {
3333

3434
f1.foo(1usize);
3535
//~^ error: the trait `Foo<usize>` is not implemented for the type `Bar`
36-
// | help: the following implementations were found:
37-
// | help: implementation 1: `Foo<i32>`
38-
// | help: implementation 2: `Foo<u8>`
36+
//~| help: the following implementations were found:
37+
//~| help: <Bar as Foo<i32>>
38+
//~| help: <Bar as Foo<u8>>
39+
//~| help: run `rustc --explain E0277`
3940
}

src/test/compile-fail/issue-21659-show-relevant-trait-impls-2.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ fn main() {
3737

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

0 commit comments

Comments
 (0)