1 error[E0573]: expected type, found variant `NoResult`
2 --> $DIR/issue-17546.rs:14:17
4 LL | fn new() -> NoResult<MyEnum, String> {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^
7 ::: $SRC_DIR/core/src/result.rs:LL:COL
9 LL | pub enum Result<T, E> {
10 | --------------------- similarly named enum `Result` defined here
12 help: try using the variant's enum
14 LL | fn new() -> foo::MyEnum {
16 help: an enum with a similar name exists
18 LL | fn new() -> Result<MyEnum, String> {
21 error[E0573]: expected type, found variant `Result`
22 --> $DIR/issue-17546.rs:24:17
24 LL | fn new() -> Result<foo::MyEnum, String> {
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
27 help: consider importing one of these items instead
29 LL | use std::fmt::Result;
31 LL | use std::io::Result;
33 LL | use std::result::Result;
35 LL | use std::thread::Result;
38 error[E0573]: expected type, found variant `Result`
39 --> $DIR/issue-17546.rs:30:13
41 LL | fn new() -> Result<foo::MyEnum, String> {
42 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
44 help: consider importing one of these items instead
46 LL | use std::fmt::Result;
48 LL | use std::io::Result;
50 LL | use std::result::Result;
52 LL | use std::thread::Result;
55 error[E0573]: expected type, found variant `NoResult`
56 --> $DIR/issue-17546.rs:35:15
58 LL | fn newer() -> NoResult<foo::MyEnum, String> {
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61 ::: $SRC_DIR/core/src/result.rs:LL:COL
63 LL | pub enum Result<T, E> {
64 | --------------------- similarly named enum `Result` defined here
66 help: try using the variant's enum
68 LL | fn newer() -> foo::MyEnum {
70 help: an enum with a similar name exists
72 LL | fn newer() -> Result<foo::MyEnum, String> {
75 error: aborting due to 4 previous errors
77 For more information about this error, try `rustc --explain E0573`.