1 error[E0412]: cannot find type `Apple` in this scope
2 --> $DIR/issue-35675.rs:20:29
4 20 | 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:23:5
14 | ^^^^^ not found in this scope
16 help: possible candidate is found in another module, you can import it into scope
18 12 | use Fruit::Apple;
21 error[E0573]: expected type, found variant `Fruit::Apple`
22 --> $DIR/issue-35675.rs:28:33
24 28 | fn should_return_fruit_too() -> Fruit::Apple {
28 | help: you can try using the variant's enum: `Fruit`
30 error[E0425]: cannot find function `Apple` in this scope
31 --> $DIR/issue-35675.rs:31:5
34 | ^^^^^ not found in this scope
36 help: possible candidate is found in another module, you can import it into scope
38 12 | use Fruit::Apple;
41 error[E0573]: expected type, found variant `Ok`
42 --> $DIR/issue-35675.rs:36:13
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`?
50 error[E0412]: cannot find type `Variant3` in this scope
51 --> $DIR/issue-35675.rs:44:13
53 44 | fn bar() -> Variant3 {
56 | not found in this scope
57 | help: you can try using the variant's enum: `x::Enum`
59 error[E0573]: expected type, found variant `Some`
60 --> $DIR/issue-35675.rs:49:13
62 49 | fn qux() -> Some {
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`?
68 error: aborting due to 7 previous errors