rust/tests/ui/suggestions/missing-trait-item.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
284 B
Rust
Raw Normal View History

// run-rustfix
trait T {
unsafe fn foo(a: &usize, b: &usize) -> usize;
fn bar(&self, a: &usize, b: &usize) -> usize;
}
mod foo {
use super::T;
impl T for () {} //~ ERROR not all trait items
impl T for usize { //~ ERROR not all trait items
}
}
fn main() {}