2019-01-06 09:33:05 -06:00
|
|
|
error[E0178]: expected a path on the left-hand side of `+`, not `((Auto))`
|
2020-01-09 04:56:38 -06:00
|
|
|
--> $DIR/trait-object-bad-parens.rs:8:16
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
LL | let _: Box<((Auto)) + Auto>;
|
2018-10-20 15:36:17 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ expected a path
|
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
error[E0178]: expected a path on the left-hand side of `+`, not `(Auto + Auto)`
|
2020-01-09 04:56:38 -06:00
|
|
|
--> $DIR/trait-object-bad-parens.rs:10:16
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
LL | let _: Box<(Auto + Auto) + Auto>;
|
2018-10-20 15:36:17 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ expected a path
|
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
error[E0178]: expected a path on the left-hand side of `+`, not `(Auto)`
|
2020-01-09 04:56:38 -06:00
|
|
|
--> $DIR/trait-object-bad-parens.rs:12:16
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
LL | let _: Box<(Auto +) + Auto>;
|
2018-10-20 15:36:17 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ expected a path
|
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
error[E0178]: expected a path on the left-hand side of `+`, not `(dyn Auto)`
|
2020-01-09 04:56:38 -06:00
|
|
|
--> $DIR/trait-object-bad-parens.rs:14:16
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
LL | let _: Box<(dyn Auto) + Auto>;
|
2018-10-20 15:36:17 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^ expected a path
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0178`.
|