]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-17546.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-17546.stderr
CommitLineData
8faf50e0 1error[E0573]: expected type, found variant `NoResult`
ba9703b0 2 --> $DIR/issue-17546.rs:12:17
8faf50e0
XL
3 |
4LL | fn new() -> NoResult<MyEnum, String> {
0731742a 5 | ^^^^^^^^^^^^^^^^^^^^^^^^
dfeec247
XL
6 |
7 ::: $SRC_DIR/libcore/result.rs:LL:COL
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`
ba9703b0 22 --> $DIR/issue-17546.rs:22:17
8faf50e0
XL
23 |
24LL | fn new() -> Result<foo::MyEnum, String> {
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
e74abb32 26 |
8faf50e0
XL
27help: possible better candidates are found in other modules, you can import them into scope
28 |
29LL | use std::fmt::Result;
30 |
31LL | use std::io::Result;
32 |
33LL | use std::prelude::v1::Result;
34 |
35LL | use std::result::Result;
36 |
e74abb32 37 and 1 other candidate
8faf50e0
XL
38
39error[E0573]: expected type, found variant `Result`
ba9703b0 40 --> $DIR/issue-17546.rs:28:13
8faf50e0
XL
41 |
42LL | fn new() -> Result<foo::MyEnum, String> {
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
e74abb32 44 |
8faf50e0
XL
45help: possible better candidates are found in other modules, you can import them into scope
46 |
47LL | use std::fmt::Result;
48 |
49LL | use std::io::Result;
50 |
51LL | use std::prelude::v1::Result;
52 |
53LL | use std::result::Result;
54 |
e74abb32 55 and 1 other candidate
8faf50e0
XL
56
57error[E0573]: expected type, found variant `NoResult`
ba9703b0 58 --> $DIR/issue-17546.rs:33:15
8faf50e0
XL
59 |
60LL | fn newer() -> NoResult<foo::MyEnum, String> {
0731742a 61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dfeec247
XL
62 |
63 ::: $SRC_DIR/libcore/result.rs:LL:COL
64 |
65LL | pub enum Result<T, E> {
66 | --------------------- similarly named enum `Result` defined here
e74abb32 67 |
0731742a
XL
68help: try using the variant's enum
69 |
70LL | fn newer() -> foo::MyEnum {
71 | ^^^^^^^^^^^
72help: an enum with a similar name exists
73 |
74LL | fn newer() -> Result<foo::MyEnum, String> {
75 | ^^^^^^
8faf50e0
XL
76
77error: aborting due to 4 previous errors
78
e74abb32 79For more information about this error, try `rustc --explain E0573`.