2022-08-07 21:03:28 +02:00
|
|
|
trait SendEqAlias<T> = PartialEq;
|
|
|
|
|
//~^ ERROR trait aliases are experimental
|
|
|
|
|
|
|
|
|
|
struct Foo<T>(dyn SendEqAlias<T>);
|
2024-11-20 14:19:36 -08:00
|
|
|
//~^ ERROR the trait alias `SendEqAlias` is not dyn compatible
|
2022-08-07 21:03:28 +02:00
|
|
|
|
|
|
|
|
struct Bar<T>(dyn SendEqAlias<T>, T);
|
2024-11-20 14:19:36 -08:00
|
|
|
//~^ ERROR the trait alias `SendEqAlias` is not dyn compatible
|
2022-08-07 21:03:28 +02:00
|
|
|
|
|
|
|
|
fn main() {}
|