]> git.lizzy.rs Git - rust.git/blob - src/test/ui/methods/method-path-in-pattern.stderr
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / test / ui / methods / method-path-in-pattern.stderr
1 error[E0533]: expected unit struct, unit variant or constant, found associated function `Foo::bar`
2   --> $DIR/method-path-in-pattern.rs:15:9
3    |
4 LL |         Foo::bar => {}
5    |         ^^^^^^^^
6
7 error[E0533]: expected unit struct, unit variant or constant, found associated function `Foo::bar`
8   --> $DIR/method-path-in-pattern.rs:19:9
9    |
10 LL |         <Foo>::bar => {}
11    |         ^^^^^^^^^^
12
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
15    |
16 LL |         <Foo>::trait_bar => {}
17    |         ^^^^^^^^^^^^^^^^
18
19 error[E0533]: expected unit struct, unit variant or constant, found associated function `Foo::bar`
20   --> $DIR/method-path-in-pattern.rs:26:12
21    |
22 LL |     if let Foo::bar = 0u32 {}
23    |            ^^^^^^^^
24
25 error[E0533]: expected unit struct, unit variant or constant, found associated function `Foo::bar`
26   --> $DIR/method-path-in-pattern.rs:28:12
27    |
28 LL |     if let <Foo>::bar = 0u32 {}
29    |            ^^^^^^^^^^
30
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
33    |
34 LL |     if let Foo::trait_bar = 0u32 {}
35    |            ^^^^^^^^^^^^^^
36
37 error: aborting due to 6 previous errors
38
39 For more information about this error, try `rustc --explain E0533`.