rust/tests/ui/suggestions/auxiliary/missing-assoc-fn-applicable-suggestions.rs

17 lines
220 B
Rust

pub trait TraitB {
type Item;
}
pub trait TraitA<A> {
type Type;
fn bar<T>(_: T) -> Self;
fn baz<T>(_: T) -> Self
where
T: TraitB,
<T as TraitB>::Item: Copy;
const A: usize;
}