rust/src/test/ui/parser/trait-object-bad-parens.stderr

28 lines
989 B
Plaintext
Raw Normal View History

2018-10-20 15:36:17 -05:00
error[E0178]: expected a path on the left-hand side of `+`, not `((Copy))`
--> $DIR/trait-object-bad-parens.rs:14: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:16: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:18: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:20: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`.