]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-39226.stderr
Rollup merge of #106779 - RReverser:patch-2, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / issue-39226.stderr
1 error[E0423]: expected value, found struct `Handle`
2   --> $DIR/issue-39226.rs:11:17
3    |
4 LL | struct Handle {}
5    | ---------------- `Handle` defined here
6 ...
7 LL |         handle: Handle
8    |                 ^^^^^^
9    |
10 help: use struct literal syntax instead
11    |
12 LL |         handle: Handle {}
13    |                 ~~~~~~~~~
14 help: a local variable with a similar name exists
15    |
16 LL |         handle: handle
17    |                 ~~~~~~
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0423`.