diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2016-10-27 05:17:42 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2016-11-28 04:18:10 +0200 |
| commit | 16b5c2cfef811feebe2797bcb7e01d2b6ff12db1 (patch) | |
| tree | e2a17a7e621aff09521fb522bdde1599b1194f18 /src/test/compile-fail/method-path-in-pattern.rs | |
| parent | 34d1352f0eb7e7511e34b1e7640e854ffaf3f137 (diff) | |
| download | rust-16b5c2cfef811feebe2797bcb7e01d2b6ff12db1.tar.gz rust-16b5c2cfef811feebe2797bcb7e01d2b6ff12db1.zip | |
rustc: desugar UFCS as much as possible during HIR lowering.
Diffstat (limited to 'src/test/compile-fail/method-path-in-pattern.rs')
| -rw-r--r-- | src/test/compile-fail/method-path-in-pattern.rs | 8 |
1 files changed, 5 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 aaa89b22829..671a518073c 100644 --- a/src/test/compile-fail/method-path-in-pattern.rs +++ b/src/test/compile-fail/method-path-in-pattern.rs @@ -22,13 +22,15 @@ impl MyTrait for Foo {} fn main() { match 0u32 { - Foo::bar => {} //~ ERROR expected unit struct/variant or constant, found method `Foo::bar` + Foo::bar => {} + //~^ ERROR expected unit struct/variant or constant, found method `<Foo>::bar` } match 0u32 { - <Foo>::bar => {} //~ ERROR expected unit struct/variant or constant, found method `bar` + <Foo>::bar => {} + //~^ ERROR expected unit struct/variant or constant, found method `<Foo>::bar` } match 0u32 { <Foo>::trait_bar => {} - //~^ ERROR expected unit struct/variant or constant, found method `trait_bar` + //~^ ERROR expected unit struct/variant or constant, found method `<Foo>::trait_bar` } } |
