fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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