]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issue-35675.stderr
New upstream version 1.20.0+dfsg1
[rustc.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[E0412]: cannot find type `Variant3` in this scope
42 --> $DIR/issue-35675.rs:36:13
43 |
44 36 | fn bar() -> Variant3 {
45 | ^^^^^^^^
46 | |
47 | not found in this scope
48 | help: you can try using the variant's enum: `x::Enum`
49
50 error: aborting due to 5 previous errors
51