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

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

15 lines
356 B
Rust
Raw Normal View History

pub trait Foo<RHS=Self> {
type Assoc;
}
pub trait Bar: Foo<Assoc=()> {
//~^ ERROR: the size for values of type `Self` cannot be known
//~| ERROR: the size for values of type `Self` cannot be known
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() {}