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