1 error[E0573]: expected type, found variant `NoResult`
2 --> $DIR/issue-17546.rs:12:17
4 LL | fn new() -> NoResult<MyEnum, String> {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^
6 help: try using the variant's enum
8 LL | fn new() -> foo::MyEnum {
10 help: an enum with a similar name exists
12 LL | fn new() -> Result<MyEnum, String> {
15 error[E0573]: expected type, found variant `Result`
16 --> $DIR/issue-17546.rs:22: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
22 LL | use std::fmt::Result;
24 LL | use std::io::Result;
26 LL | use std::prelude::v1::Result;
28 LL | use std::result::Result;
30 and 1 other candidates
32 error[E0573]: expected type, found variant `Result`
33 --> $DIR/issue-17546.rs:28:13
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
39 LL | use std::fmt::Result;
41 LL | use std::io::Result;
43 LL | use std::prelude::v1::Result;
45 LL | use std::result::Result;
47 and 1 other candidates
49 error[E0573]: expected type, found variant `NoResult`
50 --> $DIR/issue-17546.rs:33:15
52 LL | fn newer() -> NoResult<foo::MyEnum, String> {
53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54 help: try using the variant's enum
56 LL | fn newer() -> foo::MyEnum {
58 help: an enum with a similar name exists
60 LL | fn newer() -> Result<foo::MyEnum, String> {
63 error: aborting due to 4 previous errors
65 For more information about this error, try `rustc --explain E0573`.