rust/tests/ui/methods/method-path-in-pattern.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.6 KiB
Plaintext
Raw Normal View History

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 => {}
| ^^^^^^^^ not a unit struct, unit variant or constant
2018-08-08 07:28:26 -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 => {}
| ^^^^^^^^^^ not a unit struct, unit variant or constant
2018-08-08 07:28:26 -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 => {}
| ^^^^^^^^^^^^^^^^ 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 {}
| ^^^^^^^^ not a unit struct, unit variant or constant
2019-09-24 07:01:31 -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 {}
| ^^^^^^^^^^ 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 {}
| ^^^^^^^^^^^^^^ 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`.