1 error[E0573]: expected type, found variant `NoResult`
2 --> $DIR/issue-17546.rs:22:17
4 LL | fn new() -> NoResult<MyEnum, String> {
5 | --------^^^^^^^^^^^^^^^^
7 | did you mean `Result`?
8 | help: you can try using the variant's enum: `foo::MyEnum`
10 error[E0573]: expected type, found variant `Result`
11 --> $DIR/issue-17546.rs:32:17
13 LL | fn new() -> Result<foo::MyEnum, String> {
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
15 help: possible better candidates are found in other modules, you can import them into scope
17 LL | use std::fmt::Result;
19 LL | use std::io::Result;
21 LL | use std::prelude::v1::Result;
23 LL | use std::result::Result;
25 and 1 other candidates
27 error[E0573]: expected type, found variant `Result`
28 --> $DIR/issue-17546.rs:38:13
30 LL | fn new() -> Result<foo::MyEnum, String> {
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
32 help: possible better candidates are found in other modules, you can import them into scope
34 LL | use std::fmt::Result;
36 LL | use std::io::Result;
38 LL | use std::prelude::v1::Result;
40 LL | use std::result::Result;
42 and 1 other candidates
44 error[E0573]: expected type, found variant `NoResult`
45 --> $DIR/issue-17546.rs:43:15
47 LL | fn newer() -> NoResult<foo::MyEnum, String> {
48 | --------^^^^^^^^^^^^^^^^^^^^^
50 | did you mean `Result`?
51 | help: you can try using the variant's enum: `foo::MyEnum`
53 error: aborting due to 4 previous errors
55 For more information about this error, try `rustc --explain E0573`.