Skip to content

Commit f859f25

Browse files
committed
Update a compile-fail test
1 parent 9d51d6b commit f859f25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/compile-fail/issue-35675.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
enum Fruit {
11+
// these two HELPs are actually in a new line between this line and the `enum Fruit` line
12+
enum Fruit { //~ HELP possible candidate is found in another module, you can import it into scope
13+
//~^ HELP possible candidate is found in another module, you can import it into scope
1214
Apple(i64),
1315
//~^ HELP there is an enum variant `Fruit::Apple`, did you mean to use `Fruit`?
1416
//~| HELP there is an enum variant `Fruit::Apple`, did you mean to use `Fruit`?
@@ -21,7 +23,6 @@ fn should_return_fruit() -> Apple {
2123
Apple(5)
2224
//~^ ERROR cannot find function `Apple` in this scope
2325
//~| NOTE not found in this scope
24-
//~| HELP possible candidate is found in another module, you can import it into scope
2526
}
2627

2728
fn should_return_fruit_too() -> Fruit::Apple {
@@ -30,7 +31,6 @@ fn should_return_fruit_too() -> Fruit::Apple {
3031
Apple(5)
3132
//~^ ERROR cannot find function `Apple` in this scope
3233
//~| NOTE not found in this scope
33-
//~| HELP possible candidate is found in another module, you can import it into scope
3434
}
3535

3636
fn foo() -> Ok {

0 commit comments

Comments
 (0)