1 error[E0412]: cannot find type `Apple` in this scope
2 --> $DIR/issue-35675.rs:7:29
4 LL | fn should_return_fruit() -> Apple {
5 | ^^^^^ not found in this scope
7 help: there is an enum variant `Fruit::Apple`; try using the variant's enum
9 LL | fn should_return_fruit() -> Fruit {
12 error[E0425]: cannot find function, tuple struct or tuple variant `Apple` in this scope
13 --> $DIR/issue-35675.rs:9:5
16 | ^^^^^ not found in this scope
18 help: consider importing this tuple variant
20 LL | use Fruit::Apple;
23 error[E0573]: expected type, found variant `Fruit::Apple`
24 --> $DIR/issue-35675.rs:13:33
26 LL | fn should_return_fruit_too() -> Fruit::Apple {
30 | help: try using the variant's enum: `Fruit`
32 error[E0425]: cannot find function, tuple struct or tuple variant `Apple` in this scope
33 --> $DIR/issue-35675.rs:15:5
36 | ^^^^^ not found in this scope
38 help: consider importing this tuple variant
40 LL | use Fruit::Apple;
43 error[E0573]: expected type, found variant `Ok`
44 --> $DIR/issue-35675.rs:19:13
50 | help: try using the variant's enum: `std::result::Result`
52 error[E0412]: cannot find type `Variant3` in this scope
53 --> $DIR/issue-35675.rs:24:13
55 LL | fn bar() -> Variant3 {
56 | ^^^^^^^^ not found in this scope
58 help: there is an enum variant `x::Enum::Variant3`; try using the variant's enum
60 LL | fn bar() -> x::Enum {
63 error[E0573]: expected type, found variant `Some`
64 --> $DIR/issue-35675.rs:28:13
66 LL | fn qux() -> Some {
70 | help: try using the variant's enum: `std::option::Option`
72 error: aborting due to 7 previous errors
74 Some errors have detailed explanations: E0412, E0425, E0573.
75 For more information about an error, try `rustc --explain E0412`.