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