File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
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
12
14
Apple ( i64 ) ,
13
15
//~^ HELP there is an enum variant `Fruit::Apple`, did you mean to use `Fruit`?
14
16
//~| HELP there is an enum variant `Fruit::Apple`, did you mean to use `Fruit`?
@@ -21,7 +23,6 @@ fn should_return_fruit() -> Apple {
21
23
Apple ( 5 )
22
24
//~^ ERROR cannot find function `Apple` in this scope
23
25
//~| NOTE not found in this scope
24
- //~| HELP possible candidate is found in another module, you can import it into scope
25
26
}
26
27
27
28
fn should_return_fruit_too ( ) -> Fruit :: Apple {
@@ -30,7 +31,6 @@ fn should_return_fruit_too() -> Fruit::Apple {
30
31
Apple ( 5 )
31
32
//~^ ERROR cannot find function `Apple` in this scope
32
33
//~| NOTE not found in this scope
33
- //~| HELP possible candidate is found in another module, you can import it into scope
34
34
}
35
35
36
36
fn foo ( ) -> Ok {
You can’t perform that action at this time.
0 commit comments