blob: 7c454a9a777c539e3ce20646d524f8cce54abe37 (
plain)
1
2
3
4
5
6
7
8
9
|
error[E0532]: expected unit struct, unit variant or constant, found associated function `MyTrait::trait_bar`
--> $DIR/method-resolvable-path-in-pattern.rs:11:9
|
LL | <Foo as MyTrait>::trait_bar => {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a unit struct, unit variant or constant
error: aborting due to previous error
For more information about this error, try `rustc --explain E0532`.
|