]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-33504.stderr
Auto merge of #69155 - chrissimpkins:llvm-globals, r=eddyb
[rust.git] / src / test / 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    |             ^^^^
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`.