2019-10-24 05:45:15 +00:00
|
|
|
error[E0046]: not all trait items implemented, missing: `foo`, `bar`
|
2024-02-07 02:42:01 +00:00
|
|
|
--> $DIR/missing-trait-item.rs:11:5
|
2019-10-24 05:45:15 +00:00
|
|
|
|
|
|
|
|
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`
|
2024-02-07 02:42:01 +00:00
|
|
|
--> $DIR/missing-trait-item.rs:13:5
|
2019-10-24 05:45:15 +00:00
|
|
|
|
|
|
|
|
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`.
|