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