rust/tests/ui/parser/trait-object-bad-parens.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
988 B
Plaintext
Raw Normal View History

error[E0178]: expected a path on the left-hand side of `+`, not `((Auto))`
--> $DIR/trait-object-bad-parens.rs:8:16
2018-10-20 20:36:17 +00:00
|
LL | let _: Box<((Auto)) + Auto>;
2018-10-20 20:36:17 +00:00
| ^^^^^^^^^^^^^^^ expected a path
error[E0178]: expected a path on the left-hand side of `+`, not `(Auto + Auto)`
--> $DIR/trait-object-bad-parens.rs:10:16
2018-10-20 20:36:17 +00:00
|
LL | let _: Box<(Auto + Auto) + Auto>;
2018-10-20 20:36:17 +00:00
| ^^^^^^^^^^^^^^^^^^^^ expected a path
error[E0178]: expected a path on the left-hand side of `+`, not `(Auto)`
--> $DIR/trait-object-bad-parens.rs:12:16
2018-10-20 20:36:17 +00:00
|
LL | let _: Box<(Auto +) + Auto>;
2018-10-20 20:36:17 +00:00
| ^^^^^^^^^^^^^^^ expected a path
error[E0178]: expected a path on the left-hand side of `+`, not `(dyn Auto)`
--> $DIR/trait-object-bad-parens.rs:14:16
2018-10-20 20:36:17 +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`.