blob: 972c839b648032a8f5cdd483e0836f78c0a6a5a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
pub trait Foo<RHS=Self> {
type Assoc;
}
pub trait Bar: Foo<Assoc=()> {
fn new(&self, b: &
dyn Bar //~ ERROR the trait `Bar` cannot be made into an object
<Assoc=()>
);
}
fn main() {}
|