mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 11:13:43 +00:00
22 lines
546 B
Plaintext
22 lines
546 B
Plaintext
error[E0423]: expected value, found struct `Handle`
|
|
--> $DIR/issue-39226.rs:11:17
|
|
|
|
|
LL | struct Handle {}
|
|
| ---------------- `Handle` defined here
|
|
...
|
|
LL | handle: Handle
|
|
| ^^^^^^
|
|
|
|
|
help: use struct literal syntax instead
|
|
|
|
|
LL | handle: Handle {}
|
|
| ~~~~~~~~~
|
|
help: a local variable with a similar name exists
|
|
|
|
|
LL | handle: handle
|
|
| ~~~~~~
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0423`.
|