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

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

10 lines
409 B
Plaintext
Raw Normal View History

2020-03-04 21:03:15 -06:00
error[E0532]: expected unit struct, unit variant or constant, found associated function `MyTrait::trait_bar`
2018-12-25 09:56:47 -06:00
--> $DIR/method-resolvable-path-in-pattern.rs:11:9
2018-08-08 07:28:26 -05:00
|
LL | <Foo as MyTrait>::trait_bar => {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a unit struct, unit variant or constant
2018-08-08 07:28:26 -05:00
error: aborting due to 1 previous error
2018-08-08 07:28:26 -05:00
For more information about this error, try `rustc --explain E0532`.