rust/tests/ui/traits/alias/generic-default-in-dyn.rs

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

11 lines
291 B
Rust
Raw Normal View History

trait SendEqAlias<T> = PartialEq;
//~^ ERROR trait aliases are experimental
struct Foo<T>(dyn SendEqAlias<T>);
//~^ ERROR the trait alias `SendEqAlias` is not dyn compatible
struct Bar<T>(dyn SendEqAlias<T>, T);
//~^ ERROR the trait alias `SendEqAlias` is not dyn compatible
fn main() {}