mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 12:54:57 +00:00
9 lines
285 B
Rust
9 lines
285 B
Rust
trait A<T>: std::ops::Add<Self> + Sized {}
|
|
trait B<T>: A<T> {}
|
|
trait C<T>: A<dyn B<T, Output = usize>> {}
|
|
//~^ ERROR the trait `B` cannot be made into an object
|
|
//~| ERROR the trait `B` cannot be made into an object
|
|
//~| ERROR the trait `B` cannot be made into an object
|
|
|
|
fn main() {}
|