]> git.lizzy.rs Git - rust.git/blob - src/test/ui/object-safety/object-safety-issue-22040.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / object-safety / object-safety-issue-22040.stderr
1 error[E0038]: the trait `Expr` cannot be made into an object
2   --> $DIR/object-safety-issue-22040.rs:22:23
3    |
4 LL |     elements: Vec<Box<Expr+ 'x>>,
5    |                       ^^^^^^^^ the trait `Expr` cannot be made into an object
6    |
7    = note: the trait cannot use `Self` as a type parameter in the supertraits or where-clauses
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0038`.