]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-6702.stderr
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / issue-6702.stderr
1 error[E0423]: expected function, tuple struct or tuple variant, found struct `Monster`
2   --> $DIR/issue-6702.rs:7:14
3    |
4 LL | / struct Monster {
5 LL | |     damage: isize
6 LL | | }
7    | |_- `Monster` defined here
8 ...
9 LL |       let _m = Monster();
10    |                ^^^^^^^^^ help: use struct literal syntax instead: `Monster { damage: val }`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0423`.