2024-11-20 14:19:36 -08:00
|
|
|
error[E0038]: the trait `Expr` is not dyn compatible
|
2024-12-04 02:04:26 +00:00
|
|
|
--> $DIR/mentions-Self-in-super-predicates.rs:12:27
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2020-10-15 17:23:45 -07:00
|
|
|
LL | elements: Vec<Box<dyn Expr + 'x>>,
|
2024-11-20 14:19:36 -08:00
|
|
|
| ^^^^ `Expr` is not dyn compatible
|
2020-10-15 17:23:45 -07: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-10-09 23:31:01 +02:00
|
|
|
--> $DIR/mentions-Self-in-super-predicates.rs:5:21
|
2020-10-15 17:23:45 -07:00
|
|
|
|
|
2020-02-02 12:51:30 -08:00
|
|
|
LL | trait Expr: Debug + PartialEq {
|
2020-10-19 17:57:18 -07:00
|
|
|
| ---- ^^^^^^^^^ ...because it uses `Self` as a type parameter
|
2020-02-02 12:51:30 -08:00
|
|
|
| |
|
2024-11-20 14:19:36 -08:00
|
|
|
| this trait is not dyn compatible...
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2024-11-20 14:19:36 -08:00
|
|
|
error[E0038]: the trait `Expr` is not dyn compatible
|
2024-12-04 02:04:26 +00:00
|
|
|
--> $DIR/mentions-Self-in-super-predicates.rs:38:20
|
2024-02-09 12:17:55 +00:00
|
|
|
|
|
|
|
|
|
LL | let a: Box<dyn Expr> = Box::new(SExpr::new());
|
2024-11-20 14:19:36 -08:00
|
|
|
| ^^^^ `Expr` is not dyn compatible
|
2024-02-09 12:17:55 +00: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-10-09 23:31:01 +02:00
|
|
|
--> $DIR/mentions-Self-in-super-predicates.rs:5:21
|
2024-02-09 12:17:55 +00:00
|
|
|
|
|
|
|
|
|
LL | trait Expr: Debug + PartialEq {
|
|
|
|
|
| ---- ^^^^^^^^^ ...because it uses `Self` as a type parameter
|
|
|
|
|
| |
|
2024-11-20 14:19:36 -08:00
|
|
|
| this trait is not dyn compatible...
|
2024-02-09 12:17:55 +00:00
|
|
|
|
2024-11-20 14:19:36 -08:00
|
|
|
error[E0038]: the trait `Expr` is not dyn compatible
|
2024-12-04 02:04:26 +00:00
|
|
|
--> $DIR/mentions-Self-in-super-predicates.rs:40:20
|
2024-02-09 12:17:55 +00:00
|
|
|
|
|
|
|
|
|
LL | let b: Box<dyn Expr> = Box::new(SExpr::new());
|
2024-11-20 14:19:36 -08:00
|
|
|
| ^^^^ `Expr` is not dyn compatible
|
2024-02-09 12:17:55 +00: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-10-09 23:31:01 +02:00
|
|
|
--> $DIR/mentions-Self-in-super-predicates.rs:5:21
|
2024-02-09 12:17:55 +00:00
|
|
|
|
|
|
|
|
|
LL | trait Expr: Debug + PartialEq {
|
|
|
|
|
| ---- ^^^^^^^^^ ...because it uses `Self` as a type parameter
|
|
|
|
|
| |
|
2024-11-20 14:19:36 -08:00
|
|
|
| this trait is not dyn compatible...
|
2024-02-09 12:17:55 +00:00
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0038`.
|