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

28 lines
986 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))`
2018-12-25 09:56:47 -06:00
--> $DIR/trait-object-bad-parens.rs:4:16
2018-10-20 15:36:17 -05:00
|
LL | let _: Box<((Copy)) + Copy>;
| ^^^^^^^^^^^^^^^ expected a path
error[E0178]: expected a path on the left-hand side of `+`, not `(Copy + Copy)`
2018-12-25 09:56:47 -06:00
--> $DIR/trait-object-bad-parens.rs:6:16
2018-10-20 15:36:17 -05:00
|
LL | let _: Box<(Copy + Copy) + Copy>;
| ^^^^^^^^^^^^^^^^^^^^ expected a path
error[E0178]: expected a path on the left-hand side of `+`, not `(Copy)`
2018-12-25 09:56:47 -06:00
--> $DIR/trait-object-bad-parens.rs:8:16
2018-10-20 15:36:17 -05:00
|
LL | let _: Box<(Copy +) + Copy>;
| ^^^^^^^^^^^^^^^ expected a path
error[E0178]: expected a path on the left-hand side of `+`, not `(dyn Copy)`
2018-12-25 09:56:47 -06:00
--> $DIR/trait-object-bad-parens.rs:10:16
2018-10-20 15:36:17 -05:00
|
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`.