]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-35675.stderr
36fdbe986262c131b940c7d261600bd40ae68c5f
[rust.git] / src / test / ui / issue-35675.stderr
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    |                             ^^^^^
6    |                             |
7    |                             not found in this scope
8    |                             help: you can try using the variant's enum: `Fruit`
9
10 error[E0425]: cannot find function `Apple` in this scope
11   --> $DIR/issue-35675.rs:23:5
12    |
13 23 |     Apple(5)
14    |     ^^^^^ not found in this scope
15    |
16 help: possible candidate is found in another module, you can import it into scope
17    |
18 12 | use Fruit::Apple;
19    |
20
21 error[E0573]: expected type, found variant `Fruit::Apple`
22   --> $DIR/issue-35675.rs:28:33
23    |
24 28 | fn should_return_fruit_too() -> Fruit::Apple {
25    |                                 ^^^^^^^^^^^^
26    |                                 |
27    |                                 not a type
28    |                                 help: you can try using the variant's enum: `Fruit`
29
30 error[E0425]: cannot find function `Apple` in this scope
31   --> $DIR/issue-35675.rs:31:5
32    |
33 31 |     Apple(5)
34    |     ^^^^^ not found in this scope
35    |
36 help: possible candidate is found in another module, you can import it into scope
37    |
38 12 | use Fruit::Apple;
39    |
40
41 error[E0573]: expected type, found variant `Ok`
42   --> $DIR/issue-35675.rs:36:13
43    |
44 36 | fn foo() -> Ok {
45    |             ^^ not a type
46    |
47    = help: there is an enum variant `std::prelude::v1::Ok`, try using `std::prelude::v1`?
48    = help: there is an enum variant `std::result::Result::Ok`, try using `std::result::Result`?
49
50 error[E0412]: cannot find type `Variant3` in this scope
51   --> $DIR/issue-35675.rs:44:13
52    |
53 44 | fn bar() -> Variant3 {
54    |             ^^^^^^^^
55    |             |
56    |             not found in this scope
57    |             help: you can try using the variant's enum: `x::Enum`
58
59 error[E0573]: expected type, found variant `Some`
60   --> $DIR/issue-35675.rs:49:13
61    |
62 49 | fn qux() -> Some {
63    |             ^^^^ not a type
64    |
65    = help: there is an enum variant `std::option::Option::Some`, try using `std::option::Option`?
66    = help: there is an enum variant `std::prelude::v1::Some`, try using `std::prelude::v1`?
67
68 error: aborting due to 7 previous errors
69