blob: a1c483c3eca57c6b490926f024634d04ca07fcfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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`.
|