28 lines
986 B
Plaintext
28 lines
986 B
Plaintext
error[E0178]: expected a path on the left-hand side of `+`, not `((Copy))`
|
|
--> $DIR/trait-object-bad-parens.rs:4:16
|
|
|
|
|
LL | let _: Box<((Copy)) + Copy>;
|
|
| ^^^^^^^^^^^^^^^ expected a path
|
|
|
|
error[E0178]: expected a path on the left-hand side of `+`, not `(Copy + Copy)`
|
|
--> $DIR/trait-object-bad-parens.rs:6:16
|
|
|
|
|
LL | let _: Box<(Copy + Copy) + Copy>;
|
|
| ^^^^^^^^^^^^^^^^^^^^ expected a path
|
|
|
|
error[E0178]: expected a path on the left-hand side of `+`, not `(Copy)`
|
|
--> $DIR/trait-object-bad-parens.rs:8:16
|
|
|
|
|
LL | let _: Box<(Copy +) + Copy>;
|
|
| ^^^^^^^^^^^^^^^ expected a path
|
|
|
|
error[E0178]: expected a path on the left-hand side of `+`, not `(dyn Copy)`
|
|
--> $DIR/trait-object-bad-parens.rs:10:16
|
|
|
|
|
LL | let _: Box<(dyn Copy) + Copy>;
|
|
| ^^^^^^^^^^^^^^^^^ expected a path
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0178`.
|