]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-33504.stderr
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / test / ui / issues / issue-33504.stderr
index 522df6a07c2c6a521911f0cceb15b89b1b5e6089..1e61178f42edbca6727c7e20d382f088a3c806d8 100644 (file)
@@ -1,8 +1,15 @@
 error[E0308]: mismatched types
   --> $DIR/issue-33504.rs:7:13
    |
+LL | struct Test;
+   | ------------ unit struct defined here
+...
 LL |         let Test = 1;
-   |             ^^^^ expected integer, found struct `Test`
+   |             ^^^^
+   |             |
+   |             expected integer, found struct `Test`
+   |             `Test` is interpreted as a unit struct, not a new binding
+   |             help: introduce a new binding instead: `other_test`
 
 error: aborting due to previous error