fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0573]: expected type, found variant `NoResult` 2 --> $DIR/issue-17546.rs:14:17 3 | 4LL | fn new() -> NoResult<MyEnum, String> { 5 | ^^^^^^^^^^^^^^^^^^^^^^^^ 6 --> $SRC_DIR/core/src/result.rs:LL:COL 7 | 8 = note: similarly named enum `Result` defined here 9 | 10help: try using the variant's enum 11 | 12LL | fn new() -> foo::MyEnum { 13 | ~~~~~~~~~~~ 14help: an enum with a similar name exists 15 | 16LL | fn new() -> Result<MyEnum, String> { 17 | ~~~~~~ 18 19error[E0573]: expected type, found variant `Result` 20 --> $DIR/issue-17546.rs:24:17 21 | 22LL | fn new() -> Result<foo::MyEnum, String> { 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type 24 | 25help: consider importing one of these items instead 26 | 27LL + use std::fmt::Result; 28 | 29LL + use std::io::Result; 30 | 31LL + use std::result::Result; 32 | 33LL + use std::thread::Result; 34 | 35 36error[E0573]: expected type, found variant `Result` 37 --> $DIR/issue-17546.rs:30:13 38 | 39LL | fn new() -> Result<foo::MyEnum, String> { 40 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type 41 | 42help: consider importing one of these items instead 43 | 44LL + use std::fmt::Result; 45 | 46LL + use std::io::Result; 47 | 48LL + use std::result::Result; 49 | 50LL + use std::thread::Result; 51 | 52 53error[E0573]: expected type, found variant `NoResult` 54 --> $DIR/issue-17546.rs:35:15 55 | 56LL | fn newer() -> NoResult<foo::MyEnum, String> { 57 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 58 --> $SRC_DIR/core/src/result.rs:LL:COL 59 | 60 = note: similarly named enum `Result` defined here 61 | 62help: try using the variant's enum 63 | 64LL | fn newer() -> foo::MyEnum { 65 | ~~~~~~~~~~~ 66help: an enum with a similar name exists 67 | 68LL | fn newer() -> Result<foo::MyEnum, String> { 69 | ~~~~~~ 70 71error: aborting due to 4 previous errors 72 73For more information about this error, try `rustc --explain E0573`.