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