mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
19 lines
291 B
Rust
19 lines
291 B
Rust
// 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 main() {}
|