]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/blind/blind-item-block-middle.stderr
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / test / ui / blind / blind-item-block-middle.stderr
index 264e7fc8e73a212cb17c9943318b97b3afdb074d..d8d15615d7c338ac8f99466d51ce11460dc26d30 100644 (file)
@@ -1,8 +1,15 @@
 error[E0308]: mismatched types
   --> $DIR/blind-item-block-middle.rs:6:9
    |
+LL | mod foo { pub struct bar; }
+   |           --------------- unit struct defined here
+...
 LL |     let bar = 5;
-   |         ^^^ expected integer, found struct `foo::bar`
+   |         ^^^
+   |         |
+   |         expected integer, found struct `foo::bar`
+   |         `bar` is interpreted as a unit struct, not a new binding
+   |         help: introduce a new binding instead: `other_bar`
 
 error: aborting due to previous error