2020-03-05 03:03:15 +00:00
|
|
|
error[E0533]: expected unit struct, unit variant or constant, found associated function `Foo::bar`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/method-path-in-pattern.rs:15:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | Foo::bar => {}
|
2022-10-25 16:15:15 +00:00
|
|
|
| ^^^^^^^^ not a unit struct, unit variant or constant
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2022-07-17 04:03:30 +00:00
|
|
|
error[E0533]: expected unit struct, unit variant or constant, found associated function `Foo::bar`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/method-path-in-pattern.rs:19:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | <Foo>::bar => {}
|
2022-10-25 16:15:15 +00:00
|
|
|
| ^^^^^^^^^^ not a unit struct, unit variant or constant
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2022-07-17 04:03:30 +00:00
|
|
|
error[E0533]: expected unit struct, unit variant or constant, found associated function `Foo::trait_bar`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/method-path-in-pattern.rs:23:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | <Foo>::trait_bar => {}
|
2022-10-25 16:15:15 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ not a unit struct, unit variant or constant
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-03-05 03:03:15 +00:00
|
|
|
error[E0533]: expected unit struct, unit variant or constant, found associated function `Foo::bar`
|
2019-09-24 12:01:31 +00:00
|
|
|
--> $DIR/method-path-in-pattern.rs:26:12
|
|
|
|
|
|
|
|
|
LL | if let Foo::bar = 0u32 {}
|
2022-10-25 16:15:15 +00:00
|
|
|
| ^^^^^^^^ not a unit struct, unit variant or constant
|
2019-09-24 12:01:31 +00:00
|
|
|
|
2022-07-17 04:03:30 +00:00
|
|
|
error[E0533]: expected unit struct, unit variant or constant, found associated function `Foo::bar`
|
2019-09-24 12:01:31 +00:00
|
|
|
--> $DIR/method-path-in-pattern.rs:28:12
|
|
|
|
|
|
|
|
|
LL | if let <Foo>::bar = 0u32 {}
|
2022-10-25 16:15:15 +00:00
|
|
|
| ^^^^^^^^^^ not a unit struct, unit variant or constant
|
2019-09-24 12:01:31 +00:00
|
|
|
|
2020-03-05 03:03:15 +00:00
|
|
|
error[E0533]: expected unit struct, unit variant or constant, found associated function `Foo::trait_bar`
|
2019-09-24 12:01:31 +00:00
|
|
|
--> $DIR/method-path-in-pattern.rs:30:12
|
|
|
|
|
|
|
|
|
LL | if let Foo::trait_bar = 0u32 {}
|
2022-10-25 16:15:15 +00:00
|
|
|
| ^^^^^^^^^^^^^^ not a unit struct, unit variant or constant
|
2019-09-24 12:01:31 +00:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-09-24 12:01:31 +00:00
|
|
|
For more information about this error, try `rustc --explain E0533`.
|