]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/trait-object-bad-parens.stderr
Auto merge of #99292 - Aaron1011:stability-use-tree, r=cjgillot
[rust.git] / src / test / ui / parser / trait-object-bad-parens.stderr
1 error[E0178]: expected a path on the left-hand side of `+`, not `((Auto))`
2   --> $DIR/trait-object-bad-parens.rs:8:16
3    |
4 LL |     let _: Box<((Auto)) + Auto>;
5    |                ^^^^^^^^^^^^^^^ expected a path
6
7 error[E0178]: expected a path on the left-hand side of `+`, not `(Auto + Auto)`
8   --> $DIR/trait-object-bad-parens.rs:10:16
9    |
10 LL |     let _: Box<(Auto + Auto) + Auto>;
11    |                ^^^^^^^^^^^^^^^^^^^^ expected a path
12
13 error[E0178]: expected a path on the left-hand side of `+`, not `(Auto)`
14   --> $DIR/trait-object-bad-parens.rs:12:16
15    |
16 LL |     let _: Box<(Auto +) + Auto>;
17    |                ^^^^^^^^^^^^^^^ expected a path
18
19 error[E0178]: expected a path on the left-hand side of `+`, not `(dyn Auto)`
20   --> $DIR/trait-object-bad-parens.rs:14:16
21    |
22 LL |     let _: Box<(dyn Auto) + Auto>;
23    |                ^^^^^^^^^^^^^^^^^ expected a path
24
25 error: aborting due to 4 previous errors
26
27 For more information about this error, try `rustc --explain E0178`.