fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0533]: expected unit struct, unit variant or constant, found method `Foo::bar` 2 --> $DIR/method-path-in-pattern.rs:15:9 3 | 4LL | Foo::bar => {} 5 | ^^^^^^^^ 6 7error[E0533]: expected unit struct, unit variant or constant, found method `Foo::bar` 8 --> $DIR/method-path-in-pattern.rs:19:9 9 | 10LL | <Foo>::bar => {} 11 | ^^^^^^^^^^ 12 13error[E0533]: expected unit struct, unit variant or constant, found method `Foo::trait_bar` 14 --> $DIR/method-path-in-pattern.rs:23:9 15 | 16LL | <Foo>::trait_bar => {} 17 | ^^^^^^^^^^^^^^^^ 18 19error[E0533]: expected unit struct, unit variant or constant, found method `Foo::bar` 20 --> $DIR/method-path-in-pattern.rs:26:12 21 | 22LL | if let Foo::bar = 0u32 {} 23 | ^^^^^^^^ 24 25error[E0533]: expected unit struct, unit variant or constant, found method `Foo::bar` 26 --> $DIR/method-path-in-pattern.rs:28:12 27 | 28LL | if let <Foo>::bar = 0u32 {} 29 | ^^^^^^^^^^ 30 31error[E0533]: expected unit struct, unit variant or constant, found method `Foo::trait_bar` 32 --> $DIR/method-path-in-pattern.rs:30:12 33 | 34LL | if let Foo::trait_bar = 0u32 {} 35 | ^^^^^^^^^^^^^^ 36 37error: aborting due to 6 previous errors 38 39For more information about this error, try `rustc --explain E0533`.