]> git.lizzy.rs Git - rust.git/blob - tests/ui/methods/method-path-in-pattern.stderr
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / 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    |         ^^^^^^^^ not a unit struct, unit variant or constant
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    |         ^^^^^^^^^^ not a unit struct, unit variant or constant
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    |         ^^^^^^^^^^^^^^^^ not a unit struct, unit variant or constant
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    |            ^^^^^^^^ not a unit struct, unit variant or constant
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    |            ^^^^^^^^^^ not a unit struct, unit variant or constant
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    |            ^^^^^^^^^^^^^^ not a unit struct, unit variant or constant
36
37 error: aborting due to 6 previous errors
38
39 For more information about this error, try `rustc --explain E0533`.