]> git.lizzy.rs Git - rust.git/blob - tests/ui/blind/blind-item-block-middle.stderr
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / ui / blind / blind-item-block-middle.stderr
1 error[E0308]: mismatched types
2   --> $DIR/blind-item-block-middle.rs:6:9
3    |
4 LL | mod foo { pub struct bar; }
5    |           -------------- unit struct defined here
6 ...
7 LL |     let bar = 5;
8    |         ^^^   - this expression has type `{integer}`
9    |         |
10    |         expected integer, found struct `bar`
11    |         `bar` is interpreted as a unit struct, not a new binding
12    |         help: introduce a new binding instead: `other_bar`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0308`.