2022-10-23 08:18:45 -05:00
|
|
|
error: missing trait method provided by default: `provided`
|
|
|
|
--> $DIR/missing_trait_methods.rs:22:1
|
|
|
|
|
|
|
|
|
LL | impl A for Partial {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: implement the method
|
|
|
|
--> $DIR/missing_trait_methods.rs:5:5
|
|
|
|
|
|
|
|
|
LL | fn provided() {}
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
= note: `-D clippy::missing-trait-methods` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::missing_trait_methods)]`
|
2022-10-23 08:18:45 -05:00
|
|
|
|
|
|
|
error: missing trait method provided by default: `b`
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/missing_trait_methods.rs:25:1
|
2022-10-23 08:18:45 -05:00
|
|
|
|
|
|
|
|
LL | impl B for Partial {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: implement the method
|
|
|
|
--> $DIR/missing_trait_methods.rs:15:5
|
|
|
|
|
|
|
|
|
LL | fn b<'a, T: AsRef<[u8]>>(a: &'a T) -> &'a [u8] {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|