]> git.lizzy.rs Git - rust.git/blob - src/test/ui/blind/blind-item-block-middle.stderr
Point (again) to more expressions with their type, even if not fully resolved
[rust.git] / src / test / 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`.