]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/issue-28576.rs
Rollup merge of #100953 - joshtriplett:write-docs, r=Mark-Simulacrum
[rust.git] / src / test / 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() {}