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