|
| 1 | +error[E0412]: cannot find type `Apple` in this scope |
| 2 | + --> $DIR/issue-35675.rs:20:29 |
| 3 | + | |
| 4 | +20 | fn should_return_fruit() -> Apple { |
| 5 | + | ^^^^^ not found in this scope |
| 6 | + | |
| 7 | +help: there is an enum variant `Fruit::Apple`, did you mean to use `Fruit`? |
| 8 | + --> $DIR/issue-35675.rs:14:5 |
| 9 | + | |
| 10 | +14 | Apple(i64), |
| 11 | + | ^^^^^^^^^^ |
| 12 | + |
| 13 | +error[E0425]: cannot find function `Apple` in this scope |
| 14 | + --> $DIR/issue-35675.rs:23:5 |
| 15 | + | |
| 16 | +23 | Apple(5) |
| 17 | + | ^^^^^ not found in this scope |
| 18 | + | |
| 19 | +help: possible candidate is found in another module, you can import it into scope |
| 20 | + | use Fruit::Apple; |
| 21 | + |
| 22 | +error[E0573]: expected type, found variant `Fruit::Apple` |
| 23 | + --> $DIR/issue-35675.rs:28:33 |
| 24 | + | |
| 25 | +28 | fn should_return_fruit_too() -> Fruit::Apple { |
| 26 | + | ^^^^^^^^^^^^ not a type |
| 27 | + | |
| 28 | +help: there is an enum variant `Fruit::Apple`, did you mean to use `Fruit`? |
| 29 | + --> $DIR/issue-35675.rs:14:5 |
| 30 | + | |
| 31 | +14 | Apple(i64), |
| 32 | + | ^^^^^^^^^^ |
| 33 | + |
| 34 | +error[E0425]: cannot find function `Apple` in this scope |
| 35 | + --> $DIR/issue-35675.rs:31:5 |
| 36 | + | |
| 37 | +31 | Apple(5) |
| 38 | + | ^^^^^ not found in this scope |
| 39 | + | |
| 40 | +help: possible candidate is found in another module, you can import it into scope |
| 41 | + | use Fruit::Apple; |
| 42 | + |
| 43 | +error[E0573]: expected type, found variant `Ok` |
| 44 | + --> $DIR/issue-35675.rs:36:13 |
| 45 | + | |
| 46 | +36 | fn foo() -> Ok { |
| 47 | + | ^^ not a type |
| 48 | + | |
| 49 | + = help: there is an enum variant `std::prelude::v1::Ok`, did you mean to use `std::prelude::v1`? |
| 50 | + = help: there is an enum variant `std::prelude::v1::Result::Ok`, did you mean to use `std::prelude::v1::Result`? |
| 51 | + |
| 52 | +error[E0412]: cannot find type `Variant3` in this scope |
| 53 | + --> $DIR/issue-35675.rs:44:13 |
| 54 | + | |
| 55 | +44 | fn bar() -> Variant3 { |
| 56 | + | ^^^^^^^^ not found in this scope |
| 57 | + | |
| 58 | +help: there is an enum variant `x::Enum::Variant3`, did you mean to use `x::Enum`? |
| 59 | + --> $DIR/issue-35675.rs:63:9 |
| 60 | + | |
| 61 | +63 | Variant3(usize), |
| 62 | + | ^^^^^^^^^^^^^^^ |
| 63 | + |
| 64 | +error[E0573]: expected type, found variant `Some` |
| 65 | + --> $DIR/issue-35675.rs:49:13 |
| 66 | + | |
| 67 | +49 | fn qux() -> Some { |
| 68 | + | ^^^^ not a type |
| 69 | + | |
| 70 | + = help: there is an enum variant `std::option::Option::Some`, did you mean to use `std::option::Option`? |
| 71 | + = help: there is an enum variant `std::prelude::v1::Some`, did you mean to use `std::prelude::v1`? |
| 72 | + |
| 73 | +error: aborting due to previous error(s) |
| 74 | + |
0 commit comments