]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-33504.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / issues / issue-33504.stderr
1 error[E0308]: mismatched types
2 --> $DIR/issue-33504.rs:7:13
3 |
4 LL | struct Test;
5 | ----------- unit struct defined here
6 ...
7 LL | let Test = 1;
8 | ^^^^ - this expression has type `{integer}`
9 | |
10 | expected integer, found struct `Test`
11 | `Test` is interpreted as a unit struct, not a new binding
12 | help: introduce a new binding instead: `other_test`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0308`.