rust/tests/ui/traits/issue-43784-supertrait.rs
2023-01-11 09:32:08 +00:00

11 lines
198 B
Rust

pub trait Partial: Copy {
}
pub trait Complete: Partial {
}
impl<T> Partial for T where T: Complete {}
impl<T> Complete for T {} //~ ERROR the trait bound `T: Copy` is not satisfied
fn main() {}