2017-04-18 06:28:05 -05:00
|
|
|
error[E0423]: expected value, found struct `Handle`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-39226.rs:11:17
|
2017-04-18 06:28:05 -05:00
|
|
|
|
|
2019-09-22 13:27:55 -05:00
|
|
|
LL | struct Handle {}
|
|
|
|
| ---------------- `Handle` defined here
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | handle: Handle
|
2017-04-18 06:28:05 -05:00
|
|
|
| ^^^^^^
|
2020-07-09 19:42:07 -05:00
|
|
|
|
|
|
|
|
help: a local variable with a similar name exists
|
|
|
|
|
|
|
|
|
LL | handle: handle
|
|
|
|
| ^^^^^^
|
|
|
|
help: use struct literal syntax instead
|
|
|
|
|
|
|
|
|
LL | handle: Handle {}
|
|
|
|
| ^^^^^^^^^
|
2017-04-18 06:28:05 -05:00
|
|
|
|
2017-07-02 05:49:30 -05:00
|
|
|
error: aborting due to previous error
|
2017-04-18 06:28:05 -05:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0423`.
|