about summary refs log tree commit diff
path: root/src/test/ui/blind
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-12-30 15:46:31 -0800
committerEsteban Küber <esteban@kuber.com.ar>2020-03-06 15:29:26 -0800
commit125159f30a7a97b0b4d4bc36b11846a3f6dd4a7b (patch)
tree0c2c1c58cc5c4b6918ae446d15a65e8b5948d841 /src/test/ui/blind
parent2b0cfa5b4c5099f45ca540ee1c7d8c1ecd5267d2 (diff)
When encountering an Item in a pat context, point at the item def
Diffstat (limited to 'src/test/ui/blind')
-rw-r--r--src/test/ui/blind/blind-item-block-middle.stderr9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/test/ui/blind/blind-item-block-middle.stderr b/src/test/ui/blind/blind-item-block-middle.stderr
index 264e7fc8e73..d8d15615d7c 100644
--- a/src/test/ui/blind/blind-item-block-middle.stderr
+++ b/src/test/ui/blind/blind-item-block-middle.stderr
@@ -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