@@ -2,13 +2,10 @@ error[E0412]: cannot find type `Apple` in this scope
2
2
--> $DIR/issue-35675.rs:20:29
3
3
|
4
4
20 | fn should_return_fruit() -> Apple {
5
- | ^^^^^ not found in this scope
6
- |
7
- help: there is an enum variant `Fruit::Apple`, did you mean to use `Fruit`?
8
- --> $DIR/issue-35675.rs:14:5
9
- |
10
- 14 | Apple(i64),
11
- | ^^^^^^^^^^
5
+ | ^^^^^
6
+ | |
7
+ | not found in this scope
8
+ | help: you can try using the variant's enum: `Fruit`
12
9
13
10
error[E0425]: cannot find function `Apple` in this scope
14
11
--> $DIR/issue-35675.rs:23:5
@@ -17,19 +14,18 @@ error[E0425]: cannot find function `Apple` in this scope
17
14
| ^^^^^ not found in this scope
18
15
|
19
16
help: possible candidate is found in another module, you can import it into scope
20
- | use Fruit::Apple;
17
+ |
18
+ 12 | use Fruit::Apple;
19
+ |
21
20
22
21
error[E0573]: expected type, found variant `Fruit::Apple`
23
22
--> $DIR/issue-35675.rs:28:33
24
23
|
25
24
28 | fn should_return_fruit_too() -> Fruit::Apple {
26
- | ^^^^^^^^^^^^ not a type
27
- |
28
- help: there is an enum variant `Fruit::Apple`, did you mean to use `Fruit`?
29
- --> $DIR/issue-35675.rs:14:5
30
- |
31
- 14 | Apple(i64),
32
- | ^^^^^^^^^^
25
+ | ^^^^^^^^^^^^
26
+ | |
27
+ | not a type
28
+ | help: you can try using the variant's enum: `Fruit`
33
29
34
30
error[E0425]: cannot find function `Apple` in this scope
35
31
--> $DIR/issue-35675.rs:31:5
@@ -38,37 +34,36 @@ error[E0425]: cannot find function `Apple` in this scope
38
34
| ^^^^^ not found in this scope
39
35
|
40
36
help: possible candidate is found in another module, you can import it into scope
41
- | use Fruit::Apple;
37
+ |
38
+ 12 | use Fruit::Apple;
39
+ |
42
40
43
41
error[E0573]: expected type, found variant `Ok`
44
42
--> $DIR/issue-35675.rs:36:13
45
43
|
46
44
36 | fn foo() -> Ok {
47
45
| ^^ not a type
48
46
|
49
- = help: there is an enum variant `std::prelude::v1::Ok`, did you mean to use `std::prelude::v1`?
50
- = help: there is an enum variant `std::prelude::v1:: Result::Ok`, did you mean to use `std::prelude::v1 ::Result`?
47
+ = help: there is an enum variant `std::prelude::v1::Ok`, try using `std::prelude::v1`?
48
+ = help: there is an enum variant `std::result:: Result::Ok`, try using `std::result ::Result`?
51
49
52
50
error[E0412]: cannot find type `Variant3` in this scope
53
51
--> $DIR/issue-35675.rs:44:13
54
52
|
55
53
44 | fn bar() -> Variant3 {
56
- | ^^^^^^^^ not found in this scope
57
- |
58
- help: there is an enum variant `x::Enum::Variant3`, did you mean to use `x::Enum`?
59
- --> $DIR/issue-35675.rs:63:9
60
- |
61
- 63 | Variant3(usize),
62
- | ^^^^^^^^^^^^^^^
54
+ | ^^^^^^^^
55
+ | |
56
+ | not found in this scope
57
+ | help: you can try using the variant's enum: `x::Enum`
63
58
64
59
error[E0573]: expected type, found variant `Some`
65
60
--> $DIR/issue-35675.rs:49:13
66
61
|
67
62
49 | fn qux() -> Some {
68
63
| ^^^^ not a type
69
64
|
70
- = help: there is an enum variant `std::option::Option::Some`, did you mean to use `std::option::Option`?
71
- = help: there is an enum variant `std::prelude::v1::Some`, did you mean to use `std::prelude::v1`?
65
+ = help: there is an enum variant `std::option::Option::Some`, try using `std::option::Option`?
66
+ = help: there is an enum variant `std::prelude::v1::Some`, try using `std::prelude::v1`?
72
67
73
- error: aborting due to previous error(s)
68
+ error: aborting due to 7 previous errors
74
69
0 commit comments