]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0573]: expected type, found variant `NoResult` |
0731742a | 2 | --> $DIR/issue-17546.rs:12:17 |
8faf50e0 XL |
3 | | |
4 | LL | fn new() -> NoResult<MyEnum, String> { | |
0731742a XL |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^ |
6 | help: try using the variant's enum | |
7 | | | |
8 | LL | fn new() -> foo::MyEnum { | |
9 | | ^^^^^^^^^^^ | |
10 | help: an enum with a similar name exists | |
11 | | | |
12 | LL | fn new() -> Result<MyEnum, String> { | |
13 | | ^^^^^^ | |
8faf50e0 XL |
14 | |
15 | error[E0573]: expected type, found variant `Result` | |
0731742a | 16 | --> $DIR/issue-17546.rs:22:17 |
8faf50e0 XL |
17 | | |
18 | LL | fn new() -> Result<foo::MyEnum, String> { | |
19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type | |
20 | help: possible better candidates are found in other modules, you can import them into scope | |
21 | | | |
22 | LL | use std::fmt::Result; | |
23 | | | |
24 | LL | use std::io::Result; | |
25 | | | |
26 | LL | use std::prelude::v1::Result; | |
27 | | | |
28 | LL | use std::result::Result; | |
29 | | | |
30 | and 1 other candidates | |
31 | ||
32 | error[E0573]: expected type, found variant `Result` | |
0731742a | 33 | --> $DIR/issue-17546.rs:28:13 |
8faf50e0 XL |
34 | | |
35 | LL | fn new() -> Result<foo::MyEnum, String> { | |
36 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type | |
37 | help: possible better candidates are found in other modules, you can import them into scope | |
38 | | | |
39 | LL | use std::fmt::Result; | |
40 | | | |
41 | LL | use std::io::Result; | |
42 | | | |
43 | LL | use std::prelude::v1::Result; | |
44 | | | |
45 | LL | use std::result::Result; | |
46 | | | |
47 | and 1 other candidates | |
48 | ||
49 | error[E0573]: expected type, found variant `NoResult` | |
0731742a | 50 | --> $DIR/issue-17546.rs:33:15 |
8faf50e0 XL |
51 | | |
52 | LL | fn newer() -> NoResult<foo::MyEnum, String> { | |
0731742a XL |
53 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
54 | help: try using the variant's enum | |
55 | | | |
56 | LL | fn newer() -> foo::MyEnum { | |
57 | | ^^^^^^^^^^^ | |
58 | help: an enum with a similar name exists | |
59 | | | |
60 | LL | fn newer() -> Result<foo::MyEnum, String> { | |
61 | | ^^^^^^ | |
8faf50e0 XL |
62 | |
63 | error: aborting due to 4 previous errors | |
64 |