diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-06-11 18:47:47 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-07-08 12:42:57 +0300 |
| commit | 2cdd9f1c97652ee799f6bb0af7c063115ff368ea (patch) | |
| tree | 5cae86f91ec97f62e2a20eab2216e76bb887901b /src/test/compile-fail/method-path-in-pattern.rs | |
| parent | eb32440d4566346294cf2f10592d9657918245d1 (diff) | |
| download | rust-2cdd9f1c97652ee799f6bb0af7c063115ff368ea.tar.gz rust-2cdd9f1c97652ee799f6bb0af7c063115ff368ea.zip | |
Rewrite check_pat_enum, split it into check_pat_tuple_struct and check_pat_path
Update definitions in def_map for associated types written in unqualified form (like `Self::Output`) Cleanup finish_resolving_def_to_ty/resolve_ty_and_def_ufcs Make VariantDef's available through constructor IDs
Diffstat (limited to 'src/test/compile-fail/method-path-in-pattern.rs')
| -rw-r--r-- | src/test/compile-fail/method-path-in-pattern.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/compile-fail/method-path-in-pattern.rs b/src/test/compile-fail/method-path-in-pattern.rs index faf6d255c9a..ef011c89c62 100644 --- a/src/test/compile-fail/method-path-in-pattern.rs +++ b/src/test/compile-fail/method-path-in-pattern.rs @@ -22,12 +22,13 @@ impl MyTrait for Foo {} fn main() { match 0u32 { - Foo::bar => {} //~ ERROR E0327 + Foo::bar => {} //~ ERROR `Foo::bar` does not name a unit variant, unit struct or a constant } match 0u32 { - <Foo>::bar => {} //~ ERROR E0327 + <Foo>::bar => {} //~ ERROR `bar` does not name a unit variant, unit struct or a constant } match 0u32 { - <Foo>::trait_bar => {} //~ ERROR E0327 + <Foo>::trait_bar => {} + //~^ ERROR `trait_bar` does not name a unit variant, unit struct or a constant } } |
