rust/src/test/ui/methods/method-path-in-pattern.stderr

21 lines
608 B
Text
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0533]: expected unit struct/variant or constant, found method `<Foo>::bar`
2018-12-25 08:56:47 -07:00
--> $DIR/method-path-in-pattern.rs:15:9
2018-08-08 14:28:26 +02:00
|
LL | Foo::bar => {}
| ^^^^^^^^
error[E0533]: expected unit struct/variant or constant, found method `<Foo>::bar`
2018-12-25 08:56:47 -07:00
--> $DIR/method-path-in-pattern.rs:19:9
2018-08-08 14:28:26 +02:00
|
LL | <Foo>::bar => {}
| ^^^^^^^^^^
error[E0533]: expected unit struct/variant or constant, found method `<Foo>::trait_bar`
2018-12-25 08:56:47 -07:00
--> $DIR/method-path-in-pattern.rs:23:9
2018-08-08 14:28:26 +02:00
|
LL | <Foo>::trait_bar => {}
| ^^^^^^^^^^^^^^^^
error: aborting due to 3 previous errors