diff options
| author | Patryk Wychowaniec <wychowaniec.patryk@gmail.com> | 2019-10-18 18:05:54 +0200 |
|---|---|---|
| committer | Patryk Wychowaniec <wychowaniec.patryk@gmail.com> | 2019-10-28 18:43:51 +0100 |
| commit | 273ee611f08e4a788da5f3e137feb68ee310a5c8 (patch) | |
| tree | 30104c36230616b66f6711aacb224b4403bf735c /src/test/ui/methods/method-path-in-pattern.rs | |
| parent | 8d78bf6b273848d17da8f5c92162c6a6b9b10dfd (diff) | |
| download | rust-273ee611f08e4a788da5f3e137feb68ee310a5c8.tar.gz rust-273ee611f08e4a788da5f3e137feb68ee310a5c8.zip | |
Improve the "try using a variant of the expected type" hint.
Diffstat (limited to 'src/test/ui/methods/method-path-in-pattern.rs')
| -rw-r--r-- | src/test/ui/methods/method-path-in-pattern.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/methods/method-path-in-pattern.rs b/src/test/ui/methods/method-path-in-pattern.rs index 49f5e09edf4..f94be1734b7 100644 --- a/src/test/ui/methods/method-path-in-pattern.rs +++ b/src/test/ui/methods/method-path-in-pattern.rs @@ -13,20 +13,20 @@ impl MyTrait for Foo {} fn main() { match 0u32 { Foo::bar => {} - //~^ ERROR expected unit struct, unit variant or constant, found method `<Foo>::bar` + //~^ ERROR expected unit struct, unit variant or constant, found method `Foo::bar` } match 0u32 { <Foo>::bar => {} - //~^ ERROR expected unit struct, unit variant or constant, found method `<Foo>::bar` + //~^ ERROR expected unit struct, unit variant or constant, found method `Foo::bar` } match 0u32 { <Foo>::trait_bar => {} - //~^ ERROR expected unit struct, unit variant or constant, found method `<Foo>::trait_bar` + //~^ ERROR expected unit struct, unit variant or constant, found method `Foo::trait_bar` } if let Foo::bar = 0u32 {} - //~^ ERROR expected unit struct, unit variant or constant, found method `<Foo>::bar` + //~^ ERROR expected unit struct, unit variant or constant, found method `Foo::bar` if let <Foo>::bar = 0u32 {} - //~^ ERROR expected unit struct, unit variant or constant, found method `<Foo>::bar` + //~^ ERROR expected unit struct, unit variant or constant, found method `Foo::bar` if let Foo::trait_bar = 0u32 {} - //~^ ERROR expected unit struct, unit variant or constant, found method `<Foo>::trait_bar` + //~^ ERROR expected unit struct, unit variant or constant, found method `Foo::trait_bar` } |
