]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17546.stderr
hide `--explain` hint if error has no extended info
[rust.git] / src / test / ui / issues / issue-17546.stderr
1 error[E0573]: expected type, found variant `NoResult`
2   --> $DIR/issue-17546.rs:12:17
3    |
4 LL |     fn new() -> NoResult<MyEnum, String> {
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    |                 ^^^^^^
14
15 error[E0573]: expected type, found variant `Result`
16   --> $DIR/issue-17546.rs:22:17
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`
33   --> $DIR/issue-17546.rs:28:13
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`
50   --> $DIR/issue-17546.rs:33:15
51    |
52 LL | fn newer() -> NoResult<foo::MyEnum, String> {
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    |               ^^^^^^
62
63 error: aborting due to 4 previous errors
64