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