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