2017-05-16 08:11:34 -05:00
|
|
|
error[E0412]: cannot find type `Apple` in this scope
|
|
|
|
--> $DIR/issue-35675.rs:20:29
|
|
|
|
|
|
|
|
|
20 | fn should_return_fruit() -> Apple {
|
2017-05-16 08:12:24 -05:00
|
|
|
| ^^^^^
|
|
|
|
| |
|
|
|
|
| not found in this scope
|
|
|
|
| help: you can try using the variant's enum: `Fruit`
|
2017-05-16 08:11:34 -05:00
|
|
|
|
|
|
|
error[E0425]: cannot find function `Apple` in this scope
|
|
|
|
--> $DIR/issue-35675.rs:23:5
|
|
|
|
|
|
|
|
|
23 | Apple(5)
|
|
|
|
| ^^^^^ not found in this scope
|
|
|
|
|
|
|
|
|
help: possible candidate is found in another module, you can import it into scope
|
2017-05-16 08:12:24 -05:00
|
|
|
|
|
|
|
|
12 | use Fruit::Apple;
|
|
|
|
|
|
2017-05-16 08:11:34 -05:00
|
|
|
|
|
|
|
error[E0573]: expected type, found variant `Fruit::Apple`
|
|
|
|
--> $DIR/issue-35675.rs:28:33
|
|
|
|
|
|
|
|
|
28 | fn should_return_fruit_too() -> Fruit::Apple {
|
2017-05-16 08:12:24 -05:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| not a type
|
|
|
|
| help: you can try using the variant's enum: `Fruit`
|
2017-05-16 08:11:34 -05:00
|
|
|
|
|
|
|
error[E0425]: cannot find function `Apple` in this scope
|
|
|
|
--> $DIR/issue-35675.rs:31:5
|
|
|
|
|
|
|
|
|
31 | Apple(5)
|
|
|
|
| ^^^^^ not found in this scope
|
|
|
|
|
|
|
|
|
help: possible candidate is found in another module, you can import it into scope
|
2017-05-16 08:12:24 -05:00
|
|
|
|
|
|
|
|
12 | use Fruit::Apple;
|
|
|
|
|
|
2017-05-16 08:11:34 -05:00
|
|
|
|
|
|
|
error[E0412]: cannot find type `Variant3` in this scope
|
2017-07-17 03:16:08 -05:00
|
|
|
--> $DIR/issue-35675.rs:36:13
|
2017-05-16 08:11:34 -05:00
|
|
|
|
|
2017-07-17 03:16:08 -05:00
|
|
|
36 | fn bar() -> Variant3 {
|
2017-05-16 08:12:24 -05:00
|
|
|
| ^^^^^^^^
|
|
|
|
| |
|
|
|
|
| not found in this scope
|
|
|
|
| help: you can try using the variant's enum: `x::Enum`
|
2017-05-16 08:11:34 -05:00
|
|
|
|
2017-07-17 03:16:08 -05:00
|
|
|
error: aborting due to 5 previous errors
|
2017-05-16 08:11:34 -05:00
|
|
|
|