mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
26 lines
1.0 KiB
Plaintext
26 lines
1.0 KiB
Plaintext
error[E0046]: not all trait items implemented, missing: `foo`, `bar`
|
|
--> $DIR/missing-trait-item.rs:10: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:12: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`.
|