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