]> git.lizzy.rs Git - rust.git/blob - tests/ui/missing_trait_methods.stderr
Lint unnecessary safety comments on statements and block tail expressions
[rust.git] / tests / ui / missing_trait_methods.stderr
1 error: missing trait method provided by default: `provided`
2   --> $DIR/missing_trait_methods.rs:22:1
3    |
4 LL | impl A for Partial {}
5    | ^^^^^^^^^^^^^^^^^^
6    |
7 help: implement the method
8   --> $DIR/missing_trait_methods.rs:5:5
9    |
10 LL |     fn provided() {}
11    |     ^^^^^^^^^^^^^
12    = note: `-D clippy::missing-trait-methods` implied by `-D warnings`
13
14 error: missing trait method provided by default: `b`
15   --> $DIR/missing_trait_methods.rs:24:1
16    |
17 LL | impl B for Partial {
18    | ^^^^^^^^^^^^^^^^^^
19    |
20 help: implement the method
21   --> $DIR/missing_trait_methods.rs:15:5
22    |
23 LL |     fn b<'a, T: AsRef<[u8]>>(a: &'a T) -> &'a [u8] {
24    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25
26 error: aborting due to 2 previous errors
27