about summary refs log tree commit diff
path: root/src/test/ui/pattern/pattern-error-continue.stderr
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-10-14 17:20:50 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-10-27 11:50:43 -0700
commitb26ddb8af37362e33c45c78c9c91a3c5cdabfe7e (patch)
tree13882f89b25e139a8e0997d8c7146bc15b0483c0 /src/test/ui/pattern/pattern-error-continue.stderr
parent0f677c65e867d93a47ccbaeaf6e6725cde8c5ff6 (diff)
downloadrust-b26ddb8af37362e33c45c78c9c91a3c5cdabfe7e.tar.gz
rust-b26ddb8af37362e33c45c78c9c91a3c5cdabfe7e.zip
Point at local similarly named element and tweak references to variants
Point at the span for the definition of ADTs internal to the current
crate.

Look at the leading char of the ident to determine whether we're
expecting a likely fn or any of a fn, a tuple struct or a tuple variant.

Turn fn `add_typo_suggestion` into a `Resolver` method.
Diffstat (limited to 'src/test/ui/pattern/pattern-error-continue.stderr')
-rw-r--r--src/test/ui/pattern/pattern-error-continue.stderr5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/ui/pattern/pattern-error-continue.stderr b/src/test/ui/pattern/pattern-error-continue.stderr
index 4fbc630644b..5a7dab30d83 100644
--- a/src/test/ui/pattern/pattern-error-continue.stderr
+++ b/src/test/ui/pattern/pattern-error-continue.stderr
@@ -4,9 +4,12 @@ error[E0433]: failed to resolve: use of undeclared type or module `E`
 LL |         E::V => {}
    |         ^ use of undeclared type or module `E`
 
-error[E0532]: expected tuple struct/variant, found unit variant `A::D`
+error[E0532]: expected tuple struct or tuple variant, found unit variant `A::D`
   --> $DIR/pattern-error-continue.rs:18:9
    |
+LL |     B(isize, isize),
+   |     --------------- similarly named tuple variant `B` defined here
+...
 LL |         A::D(_) => (),
    |         ^^^-
    |            |