2016-12-01 01:35:25 +03:00
|
|
|
error[E0574]: expected struct, variant or union type, found enum `Result`
|
2020-05-05 18:12:50 -07:00
|
|
|
--> $DIR/issue-16058.rs:10:9
|
2016-12-01 01:35:25 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | Result {
|
2016-12-01 01:35:25 +03:00
|
|
|
| ^^^^^^ not a struct, variant or union type
|
2019-10-23 22:20:58 -07:00
|
|
|
|
|
2020-05-04 18:12:06 -04:00
|
|
|
help: consider importing one of these items instead
|
2017-06-27 23:16:04 -07:00
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + use std::fmt::Result;
|
2017-07-05 16:39:06 -07:00
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + use std::io::Result;
|
2017-07-05 16:39:06 -07:00
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + use std::thread::Result;
|
2017-06-27 23:16:04 -07:00
|
|
|
|
|
2016-12-01 01:35:25 +03:00
|
|
|
|
2017-07-02 13:49:30 +03:00
|
|
|
error: aborting due to previous error
|
2016-12-01 01:35:25 +03:00
|
|
|
|
2019-10-11 15:23:18 +02:00
|
|
|
For more information about this error, try `rustc --explain E0574`.
|