2016-12-25 19:38:45 +02:00
|
|
|
trait A<T>: std::ops::Add<Self> + Sized {}
|
|
|
|
trait B<T>: A<T> {}
|
2023-10-31 13:45:26 +00:00
|
|
|
trait C<T>: A<dyn B<T, Output = usize>> {}
|
2016-12-25 19:38:45 +02:00
|
|
|
//~^ ERROR the trait `B` cannot be made into an object
|
2023-04-19 00:13:53 +00:00
|
|
|
//~| ERROR the trait `B` cannot be made into an object
|
2023-10-31 13:45:26 +00:00
|
|
|
//~| ERROR the trait `B` cannot be made into an object
|
2016-12-25 19:38:45 +02:00
|
|
|
|
|
|
|
fn main() {}
|