]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/issue-28576.rs
Rollup merge of #106835 - compiler-errors:new-solver-gat-rebase-oops, r=lcnr
[rust.git] / tests / ui / traits / issue-28576.rs
1 pub trait Foo<RHS=Self> {
2     type Assoc;
3 }
4
5 pub trait Bar: Foo<Assoc=()> {
6     fn new(&self, b: &
7            dyn Bar //~ ERROR the trait `Bar` cannot be made into an object
8               <Assoc=()>
9     );
10 }
11
12 fn main() {}