]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-17546.stderr
Move some `compile-fail` tests to `ui`
[rust.git] / src / test / ui / issue-17546.stderr
1 error[E0573]: expected type, found variant `NoResult`
2   --> $DIR/issue-17546.rs:22:17
3    |
4 LL |     fn new() -> NoResult<MyEnum, String> {
5    |                 --------^^^^^^^^^^^^^^^^
6    |                 |
7    |                 did you mean `Result`?
8    |                 help: you can try using the variant's enum: `foo::MyEnum`
9
10 error[E0573]: expected type, found variant `Result`
11   --> $DIR/issue-17546.rs:32:17
12    |
13 LL |     fn new() -> Result<foo::MyEnum, String> {
14    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
15 help: possible better candidates are found in other modules, you can import them into scope
16    |
17 LL |     use std::fmt::Result;
18    |
19 LL |     use std::io::Result;
20    |
21 LL |     use std::prelude::v1::Result;
22    |
23 LL |     use std::result::Result;
24    |
25 and 1 other candidates
26
27 error[E0573]: expected type, found variant `Result`
28   --> $DIR/issue-17546.rs:38:13
29    |
30 LL | fn new() -> Result<foo::MyEnum, String> {
31    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
32 help: possible better candidates are found in other modules, you can import them into scope
33    |
34 LL | use std::fmt::Result;
35    |
36 LL | use std::io::Result;
37    |
38 LL | use std::prelude::v1::Result;
39    |
40 LL | use std::result::Result;
41    |
42 and 1 other candidates
43
44 error[E0573]: expected type, found variant `NoResult`
45   --> $DIR/issue-17546.rs:43:15
46    |
47 LL | fn newer() -> NoResult<foo::MyEnum, String> {
48    |               --------^^^^^^^^^^^^^^^^^^^^^
49    |               |
50    |               did you mean `Result`?
51    |               help: you can try using the variant's enum: `foo::MyEnum`
52
53 error: aborting due to 4 previous errors
54
55 For more information about this error, try `rustc --explain E0573`.