]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/missing-trait-item.stderr
Rollup merge of #107524 - cjgillot:both-storage, r=RalfJung
[rust.git] / tests / ui / suggestions / missing-trait-item.stderr
1 error[E0046]: not all trait items implemented, missing: `foo`, `bar`
2   --> $DIR/missing-trait-item.rs:10:5
3    |
4 LL |     unsafe fn foo(a: &usize, b: &usize) -> usize;
5    |     --------------------------------------------- `foo` from trait
6 LL |     fn bar(&self, a: &usize, b: &usize) -> usize;
7    |     --------------------------------------------- `bar` from trait
8 ...
9 LL |     impl T for () {}
10    |     ^^^^^^^^^^^^^ missing `foo`, `bar` in implementation
11
12 error[E0046]: not all trait items implemented, missing: `foo`, `bar`
13   --> $DIR/missing-trait-item.rs:12:5
14    |
15 LL |     unsafe fn foo(a: &usize, b: &usize) -> usize;
16    |     --------------------------------------------- `foo` from trait
17 LL |     fn bar(&self, a: &usize, b: &usize) -> usize;
18    |     --------------------------------------------- `bar` from trait
19 ...
20 LL |     impl T for usize {
21    |     ^^^^^^^^^^^^^^^^ missing `foo`, `bar` in implementation
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0046`.