rust/src/test/ui/issues/issue-35675.stderr

72 lines
2.2 KiB
Plaintext
Raw Normal View History

error[E0412]: cannot find type `Apple` in this scope
--> $DIR/issue-35675.rs:17:29
|
2018-02-22 18:42:32 -06:00
LL | fn should_return_fruit() -> Apple {
| ^^^^^ not found in this scope
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
| ^^^^^
error[E0425]: cannot find function `Apple` in this scope
--> $DIR/issue-35675.rs:19:5
|
2018-02-22 18:42:32 -06:00
LL | 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
|
2018-02-24 17:01:39 -06:00
LL | use Fruit::Apple;
2017-05-16 08:12:24 -05:00
|
error[E0573]: expected type, found variant `Fruit::Apple`
--> $DIR/issue-35675.rs:23:33
|
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
| help: try using the variant's enum: `Fruit`
error[E0425]: cannot find function `Apple` in this scope
--> $DIR/issue-35675.rs:25:5
|
2018-02-22 18:42:32 -06:00
LL | 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
|
2018-02-24 17:01:39 -06:00
LL | use Fruit::Apple;
2017-05-16 08:12:24 -05:00
|
error[E0573]: expected type, found variant `Ok`
--> $DIR/issue-35675.rs:29:13
|
2018-02-22 18:42:32 -06:00
LL | fn foo() -> Ok {
| ^^
| |
| not a type
| help: try using the variant's enum: `std::result::Result`
error[E0412]: cannot find type `Variant3` in this scope
--> $DIR/issue-35675.rs:34:13
|
2018-02-22 18:42:32 -06:00
LL | fn bar() -> Variant3 {
| ^^^^^^^^ not found in this scope
help: there is an enum variant `x::Enum::Variant3`; try using the variant's enum
|
LL | fn bar() -> x::Enum {
| ^^^^^^^
error[E0573]: expected type, found variant `Some`
--> $DIR/issue-35675.rs:38:13
|
2018-02-22 18:42:32 -06:00
LL | fn qux() -> Some {
| ^^^^
| |
| not a type
| help: try using the variant's enum: `Option`
error: aborting due to 7 previous errors
2018-03-03 08:59:40 -06:00
Some errors occurred: E0412, E0425, E0573.
For more information about an error, try `rustc --explain E0412`.