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[E0412]: cannot find type `Variant3` in this scope
42 --> $DIR/issue-35675.rs:36:13
44 36 | fn bar() -> Variant3 {
47 | not found in this scope
48 | help: you can try using the variant's enum: `x::Enum`
50 error: aborting due to 5 previous errors