diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-10-14 17:20:50 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-10-27 11:50:43 -0700 |
| commit | b26ddb8af37362e33c45c78c9c91a3c5cdabfe7e (patch) | |
| tree | 13882f89b25e139a8e0997d8c7146bc15b0483c0 /src/test/ui/pattern/pattern-error-continue.rs | |
| parent | 0f677c65e867d93a47ccbaeaf6e6725cde8c5ff6 (diff) | |
| download | rust-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.rs')
| -rw-r--r-- | src/test/ui/pattern/pattern-error-continue.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/pattern/pattern-error-continue.rs b/src/test/ui/pattern/pattern-error-continue.rs index 7e79868f874..79cc4b552a7 100644 --- a/src/test/ui/pattern/pattern-error-continue.rs +++ b/src/test/ui/pattern/pattern-error-continue.rs @@ -15,7 +15,7 @@ fn f(_c: char) {} fn main() { match A::B(1, 2) { A::B(_, _, _) => (), //~ ERROR this pattern has 3 fields, but - A::D(_) => (), //~ ERROR expected tuple struct/variant, found unit variant `A::D` + A::D(_) => (), //~ ERROR expected tuple struct or tuple variant, found unit variant `A::D` _ => () } match 'c' { |
