2022-08-07 21:03:28 +02:00
|
|
|
error[E0658]: trait aliases are experimental
|
|
|
|
--> $DIR/generic-default-in-dyn.rs:1:1
|
|
|
|
|
|
|
|
|
LL | trait SendEqAlias<T> = PartialEq;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #41517 <https://github.com/rust-lang/rust/issues/41517> for more information
|
|
|
|
= help: add `#![feature(trait_alias)]` to the crate attributes to enable
|
2024-01-10 01:39:02 -05:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2022-08-07 21:03:28 +02:00
|
|
|
|
2024-11-20 14:19:36 -08:00
|
|
|
error[E0038]: the trait alias `SendEqAlias` is not dyn compatible
|
2022-08-07 21:03:28 +02:00
|
|
|
--> $DIR/generic-default-in-dyn.rs:4:19
|
|
|
|
|
|
|
|
|
LL | struct Foo<T>(dyn SendEqAlias<T>);
|
2024-11-20 14:19:36 -08:00
|
|
|
| ^^^^^^^^^^^^^^ `SendEqAlias` is not dyn compatible
|
2022-08-07 21:03:28 +02:00
|
|
|
|
|
2024-11-20 14:19:36 -08:00
|
|
|
note: for a trait to be dyn compatible it needs to allow building a vtable
|
2025-01-22 05:14:07 +01:00
|
|
|
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
|
2024-12-04 02:04:26 +00:00
|
|
|
--> $DIR/generic-default-in-dyn.rs:1:24
|
2022-08-07 21:03:28 +02:00
|
|
|
|
|
2024-12-04 02:04:26 +00:00
|
|
|
LL | trait SendEqAlias<T> = PartialEq;
|
|
|
|
| ----------- ^^^^^^^^^ ...because it uses `Self` as a type parameter
|
|
|
|
| |
|
2024-11-20 14:19:36 -08:00
|
|
|
| this trait is not dyn compatible...
|
2022-08-07 21:03:28 +02:00
|
|
|
|
2024-11-20 14:19:36 -08:00
|
|
|
error[E0038]: the trait alias `SendEqAlias` is not dyn compatible
|
2022-08-07 21:03:28 +02:00
|
|
|
--> $DIR/generic-default-in-dyn.rs:7:19
|
|
|
|
|
|
|
|
|
LL | struct Bar<T>(dyn SendEqAlias<T>, T);
|
2024-11-20 14:19:36 -08:00
|
|
|
| ^^^^^^^^^^^^^^ `SendEqAlias` is not dyn compatible
|
2022-08-07 21:03:28 +02:00
|
|
|
|
|
2024-11-20 14:19:36 -08:00
|
|
|
note: for a trait to be dyn compatible it needs to allow building a vtable
|
2025-01-22 05:14:07 +01:00
|
|
|
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
|
2024-12-04 02:04:26 +00:00
|
|
|
--> $DIR/generic-default-in-dyn.rs:1:24
|
2022-08-07 21:03:28 +02:00
|
|
|
|
|
2024-12-04 02:04:26 +00:00
|
|
|
LL | trait SendEqAlias<T> = PartialEq;
|
|
|
|
| ----------- ^^^^^^^^^ ...because it uses `Self` as a type parameter
|
|
|
|
| |
|
2024-11-20 14:19:36 -08:00
|
|
|
| this trait is not dyn compatible...
|
2022-08-07 21:03:28 +02:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2024-12-04 02:04:26 +00:00
|
|
|
Some errors have detailed explanations: E0038, E0658.
|
|
|
|
For more information about an error, try `rustc --explain E0038`.
|