summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-35675.stderr
blob: 4a06196d548e3f9fd1ac7eccaaebc5cf4a337582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
error[E0412]: cannot find type `Apple` in this scope
  --> $DIR/issue-35675.rs:7:29
   |
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 {
   |                             ~~~~~

error[E0425]: cannot find function, tuple struct or tuple variant `Apple` in this scope
  --> $DIR/issue-35675.rs:9:5
   |
LL |     Apple(5)
   |     ^^^^^ not found in this scope
   |
help: consider importing this tuple variant
   |
LL | use Fruit::Apple;
   |

error[E0573]: expected type, found variant `Fruit::Apple`
  --> $DIR/issue-35675.rs:13:33
   |
LL | fn should_return_fruit_too() -> Fruit::Apple {
   |                                 ^^^^^^^^^^^^
   |                                 |
   |                                 not a type
   |                                 help: try using the variant's enum: `Fruit`

error[E0425]: cannot find function, tuple struct or tuple variant `Apple` in this scope
  --> $DIR/issue-35675.rs:15:5
   |
LL |     Apple(5)
   |     ^^^^^ not found in this scope
   |
help: consider importing this tuple variant
   |
LL | use Fruit::Apple;
   |

error[E0573]: expected type, found variant `Ok`
  --> $DIR/issue-35675.rs:19:13
   |
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:24:13
   |
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:28:13
   |
LL | fn qux() -> Some {
   |             ^^^^
   |             |
   |             not a type
   |             help: try using the variant's enum: `std::option::Option`

error: aborting due to 7 previous errors

Some errors have detailed explanations: E0412, E0425, E0573.
For more information about an error, try `rustc --explain E0412`.