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