2017-05-16 08:11:34 -05:00
|
|
|
error[E0412]: cannot find type `Apple` in this scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-35675.rs:7:29
|
2017-05-16 08:11:34 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn should_return_fruit() -> Apple {
|
2018-11-19 00:21:38 -06:00
|
|
|
| ^^^^^ not found in this scope
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2018-11-19 00:21:38 -06:00
|
|
|
help: there is an enum variant `Fruit::Apple`; try using the variant's enum
|
|
|
|
|
|
|
|
|
LL | fn should_return_fruit() -> Fruit {
|
2017-05-16 08:12:24 -05:00
|
|
|
| ^^^^^
|
2017-05-16 08:11:34 -05:00
|
|
|
|
2019-10-14 19:20:50 -05:00
|
|
|
error[E0425]: cannot find function, tuple struct or tuple variant `Apple` in this scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-35675.rs:9:5
|
2017-05-16 08:11:34 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Apple(5)
|
2017-05-16 08:11:34 -05:00
|
|
|
| ^^^^^ not found in this scope
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2017-05-16 08:11:34 -05:00
|
|
|
help: possible candidate is found in another module, you can import it into scope
|
2017-05-16 08:12:24 -05:00
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use Fruit::Apple;
|
2017-05-16 08:12:24 -05:00
|
|
|
|
|
2017-05-16 08:11:34 -05:00
|
|
|
|
|
|
|
error[E0573]: expected type, found variant `Fruit::Apple`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-35675.rs:13:33
|
2017-05-16 08:11:34 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn should_return_fruit_too() -> Fruit::Apple {
|
2017-05-16 08:12:24 -05:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| not a type
|
2018-11-19 00:21:38 -06:00
|
|
|
| help: try using the variant's enum: `Fruit`
|
2017-05-16 08:11:34 -05:00
|
|
|
|
2019-10-14 19:20:50 -05:00
|
|
|
error[E0425]: cannot find function, tuple struct or tuple variant `Apple` in this scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-35675.rs:15:5
|
2017-05-16 08:11:34 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Apple(5)
|
2017-05-16 08:11:34 -05:00
|
|
|
| ^^^^^ not found in this scope
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2017-05-16 08:11:34 -05:00
|
|
|
help: possible candidate is found in another module, you can import it into scope
|
2017-05-16 08:12:24 -05:00
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | use Fruit::Apple;
|
2017-05-16 08:12:24 -05:00
|
|
|
|
|
2017-05-16 08:11:34 -05:00
|
|
|
|
2017-07-29 18:28:30 -05:00
|
|
|
error[E0573]: expected type, found variant `Ok`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-35675.rs:19:13
|
2017-05-16 08:11:34 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo() -> Ok {
|
2018-11-23 14:57:03 -06:00
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| not a type
|
|
|
|
| help: try using the variant's enum: `std::result::Result`
|
2017-07-29 18:28:30 -05:00
|
|
|
|
|
|
|
error[E0412]: cannot find type `Variant3` in this scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-35675.rs:24:13
|
2017-07-29 18:28:30 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn bar() -> Variant3 {
|
2018-11-19 00:21:38 -06:00
|
|
|
| ^^^^^^^^ not found in this scope
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2018-11-19 00:21:38 -06:00
|
|
|
help: there is an enum variant `x::Enum::Variant3`; try using the variant's enum
|
|
|
|
|
|
|
|
|
LL | fn bar() -> x::Enum {
|
|
|
|
| ^^^^^^^
|
2017-05-16 08:11:34 -05:00
|
|
|
|
2017-07-29 18:28:30 -05:00
|
|
|
error[E0573]: expected type, found variant `Some`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-35675.rs:28:13
|
2017-07-29 18:28:30 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn qux() -> Some {
|
2018-11-23 14:57:03 -06:00
|
|
|
| ^^^^
|
|
|
|
| |
|
|
|
|
| not a type
|
2019-10-05 15:02:34 -05:00
|
|
|
| help: try using the variant's enum: `std::option::Option`
|
2017-07-29 18:28:30 -05:00
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
2017-05-16 08:11:34 -05:00
|
|
|
|
2019-10-09 07:19:48 -05:00
|
|
|
Some errors have detailed explanations: E0412, E0425, E0573.
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about an error, try `rustc --explain E0412`.
|