about summary refs log tree commit diff
path: root/tests/ui/suggestions/missing-trait-item.stderr
blob: 298d0d16438bea45a2c94b476a013e33bac2a561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
error[E0046]: not all trait items implemented, missing: `foo`, `bar`
  --> $DIR/missing-trait-item.rs:11:5
   |
LL |     unsafe fn foo(a: &usize, b: &usize) -> usize;
   |     --------------------------------------------- `foo` from trait
LL |     fn bar(&self, a: &usize, b: &usize) -> usize;
   |     --------------------------------------------- `bar` from trait
...
LL |     impl T for () {}
   |     ^^^^^^^^^^^^^ missing `foo`, `bar` in implementation

error[E0046]: not all trait items implemented, missing: `foo`, `bar`
  --> $DIR/missing-trait-item.rs:13:5
   |
LL |     unsafe fn foo(a: &usize, b: &usize) -> usize;
   |     --------------------------------------------- `foo` from trait
LL |     fn bar(&self, a: &usize, b: &usize) -> usize;
   |     --------------------------------------------- `bar` from trait
...
LL |     impl T for usize {
   |     ^^^^^^^^^^^^^^^^ missing `foo`, `bar` in implementation

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0046`.