1 error[E0412]: cannot find type `Apple` in this scope
2 --> $DIR/issue-35675.rs:17:29
4 LL | fn should_return_fruit() -> Apple {
7 | not found in this scope
8 | help: you can try using the variant's enum: `Fruit`
10 error[E0425]: cannot find function `Apple` in this scope
11 --> $DIR/issue-35675.rs:19:5
14 | ^^^^^ not found in this scope
15 help: possible candidate is found in another module, you can import it into scope
17 LL | use Fruit::Apple;
20 error[E0573]: expected type, found variant `Fruit::Apple`
21 --> $DIR/issue-35675.rs:23:33
23 LL | fn should_return_fruit_too() -> Fruit::Apple {
27 | help: you can try using the variant's enum: `Fruit`
29 error[E0425]: cannot find function `Apple` in this scope
30 --> $DIR/issue-35675.rs:25:5
33 | ^^^^^ not found in this scope
34 help: possible candidate is found in another module, you can import it into scope
36 LL | use Fruit::Apple;
39 error[E0573]: expected type, found variant `Ok`
40 --> $DIR/issue-35675.rs:29:13
45 = help: there is an enum variant `std::prelude::v1::Ok`, try using `std::prelude::v1`?
46 = help: there is an enum variant `std::result::Result::Ok`, try using `std::result::Result`?
48 error[E0412]: cannot find type `Variant3` in this scope
49 --> $DIR/issue-35675.rs:34:13
51 LL | fn bar() -> Variant3 {
54 | not found in this scope
55 | help: you can try using the variant's enum: `x::Enum`
57 error[E0573]: expected type, found variant `Some`
58 --> $DIR/issue-35675.rs:38:13
60 LL | fn qux() -> Some {
63 = help: there is an enum variant `std::prelude::v1::Option::Some`, try using `std::prelude::v1::Option`?
64 = help: there is an enum variant `std::prelude::v1::Some`, try using `std::prelude::v1`?
66 error: aborting due to 7 previous errors
68 Some errors occurred: E0412, E0425, E0573.
69 For more information about an error, try `rustc --explain E0412`.