fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0573]: expected type, found variant `NoResult` 2 --> $DIR/issue-17546.rs:12:17 3 | 4LL | fn new() -> NoResult<MyEnum, String> { 5 | ^^^^^^^^^^^^^^^^^^^^^^^^ 6help: try using the variant's enum 7 | 8LL | fn new() -> foo::MyEnum { 9 | ^^^^^^^^^^^ 10help: an enum with a similar name exists 11 | 12LL | fn new() -> Result<MyEnum, String> { 13 | ^^^^^^ 14 15error[E0573]: expected type, found variant `Result` 16 --> $DIR/issue-17546.rs:22:17 17 | 18LL | fn new() -> Result<foo::MyEnum, String> { 19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type 20help: possible better candidates are found in other modules, you can import them into scope 21 | 22LL | use std::fmt::Result; 23 | 24LL | use std::io::Result; 25 | 26LL | use std::prelude::v1::Result; 27 | 28LL | use std::result::Result; 29 | 30and 1 other candidates 31 32error[E0573]: expected type, found variant `Result` 33 --> $DIR/issue-17546.rs:28:13 34 | 35LL | fn new() -> Result<foo::MyEnum, String> { 36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type 37help: possible better candidates are found in other modules, you can import them into scope 38 | 39LL | use std::fmt::Result; 40 | 41LL | use std::io::Result; 42 | 43LL | use std::prelude::v1::Result; 44 | 45LL | use std::result::Result; 46 | 47and 1 other candidates 48 49error[E0573]: expected type, found variant `NoResult` 50 --> $DIR/issue-17546.rs:33:15 51 | 52LL | fn newer() -> NoResult<foo::MyEnum, String> { 53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 54help: try using the variant's enum 55 | 56LL | fn newer() -> foo::MyEnum { 57 | ^^^^^^^^^^^ 58help: an enum with a similar name exists 59 | 60LL | fn newer() -> Result<foo::MyEnum, String> { 61 | ^^^^^^ 62 63error: aborting due to 4 previous errors 64