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

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

13 lines
222 B
Rust
Raw Normal View History

pub trait Foo<RHS=Self> {
type Assoc;
}
pub trait Bar: Foo<Assoc=()> {
fn new(&self, b: &
2019-05-28 18:46:13 +00:00
dyn Bar //~ ERROR the trait `Bar` cannot be made into an object
<Assoc=()>
);
}
fn main() {}