]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-28576.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / issues / 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() {}