mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 00:47:16 +00:00
28 lines
739 B
Text
28 lines
739 B
Text
|
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`
|
||
|
|
||
|
error: missing trait method provided by default: `b`
|
||
|
--> $DIR/missing_trait_methods.rs:24:1
|
||
|
|
|
||
|
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
|
||
|
|