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