rust/src/test/ui/object-safety/object-safety-issue-22040.stderr

12 lines
495 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0038]: the trait `Expr` cannot be made into an object
2018-12-25 09:56:47 -06:00
--> $DIR/object-safety-issue-22040.rs:12:23
2018-08-08 07:28:26 -05:00
|
2019-05-28 13:46:13 -05:00
LL | elements: Vec<Box<dyn Expr + 'x>>,
| ^^^^^^^^^^^^^ the trait `Expr` cannot be made into an object
2018-08-08 07:28:26 -05:00
|
= note: the trait cannot be made into an object because it cannot use `Self` as a type parameter in the supertraits or `where`-clauses
2018-08-08 07:28:26 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0038`.