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