fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
608 B20 linesraw
1error[E0533]: expected unit struct/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/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/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: aborting due to 3 previous errors
20