rust/tests/ui/suggestions/missing-assoc-fn-applicable-suggestions.fixed

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

22 lines
424 B
Rust
Raw Normal View History

// run-rustfix
trait TraitB {
type Item;
}
trait TraitA<A> {
type Type;
fn bar<T>(_: T) -> Self;
fn baz<T>(_: T) -> Self where T: TraitB, <T as TraitB>::Item: Copy;
}
struct S;
struct Type;
impl TraitA<()> for S { //~ ERROR not all trait items implemented
fn baz<T>(_: T) -> Self where T: TraitB, <T as TraitB>::Item: Copy { todo!() }
2020-01-31 13:35:37 -06:00
fn bar<T>(_: T) -> Self { todo!() }
type Type = Type;
}
fn main() {}