mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
11 lines
198 B
Rust
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() {}
|