rust/tests/ui/traits/issue-38404.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
228 B
Rust
Raw Normal View History

trait A<T>: std::ops::Add<Self> + Sized {}
trait B<T>: A<T> {}
2019-05-28 18:46:13 +00:00
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
fn main() {}