1 error[E0533]: expected unit struct, unit variant or constant, found method `Foo::bar`
2 --> $DIR/method-path-in-pattern.rs:15:9
7 error[E0533]: expected unit struct, unit variant or constant, found method `Foo::bar`
8 --> $DIR/method-path-in-pattern.rs:19:9
13 error[E0533]: expected unit struct, unit variant or constant, found method `Foo::trait_bar`
14 --> $DIR/method-path-in-pattern.rs:23:9
16 LL | <Foo>::trait_bar => {}
19 error[E0533]: expected unit struct, unit variant or constant, found method `Foo::bar`
20 --> $DIR/method-path-in-pattern.rs:26:12
22 LL | if let Foo::bar = 0u32 {}
25 error[E0533]: expected unit struct, unit variant or constant, found method `Foo::bar`
26 --> $DIR/method-path-in-pattern.rs:28:12
28 LL | if let <Foo>::bar = 0u32 {}
31 error[E0533]: expected unit struct, unit variant or constant, found method `Foo::trait_bar`
32 --> $DIR/method-path-in-pattern.rs:30:12
34 LL | if let Foo::trait_bar = 0u32 {}
37 error: aborting due to 6 previous errors
39 For more information about this error, try `rustc --explain E0533`.