]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-17546.stderr
New upstream version 1.39.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-17546.stderr
CommitLineData
8faf50e0 1error[E0573]: expected type, found variant `NoResult`
0731742a 2 --> $DIR/issue-17546.rs:12:17
8faf50e0
XL
3 |
4LL | fn new() -> NoResult<MyEnum, String> {
0731742a
XL
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 | ^^^^^^
8faf50e0
XL
14
15error[E0573]: expected type, found variant `Result`
0731742a 16 --> $DIR/issue-17546.rs:22:17
8faf50e0
XL
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`
0731742a 33 --> $DIR/issue-17546.rs:28:13
8faf50e0
XL
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`
0731742a 50 --> $DIR/issue-17546.rs:33:15
8faf50e0
XL
51 |
52LL | fn newer() -> NoResult<foo::MyEnum, String> {
0731742a
XL
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 | ^^^^^^
8faf50e0
XL
62
63error: aborting due to 4 previous errors
64