]>
Commit | Line | Data |
---|---|---|
2c00a5a8 | 1 | error: ambiguous `+` in a type |
0731742a | 2 | --> $DIR/impl-trait-plus-priority.rs:23:18 |
2c00a5a8 | 3 | | |
0531ce1d | 4 | LL | type A = fn() -> impl A +; |
2c00a5a8 XL |
5 | | ^^^^^^^^ help: use parentheses to disambiguate: `(impl A)` |
6 | ||
7 | error: ambiguous `+` in a type | |
0731742a | 8 | --> $DIR/impl-trait-plus-priority.rs:25:18 |
2c00a5a8 | 9 | | |
0531ce1d | 10 | LL | type A = fn() -> impl A + B; |
2c00a5a8 XL |
11 | | ^^^^^^^^^^ help: use parentheses to disambiguate: `(impl A + B)` |
12 | ||
13 | error: ambiguous `+` in a type | |
0731742a | 14 | --> $DIR/impl-trait-plus-priority.rs:27:18 |
2c00a5a8 | 15 | | |
0531ce1d | 16 | LL | type A = fn() -> dyn A + B; |
2c00a5a8 XL |
17 | | ^^^^^^^^^ help: use parentheses to disambiguate: `(dyn A + B)` |
18 | ||
19 | error[E0178]: expected a path on the left-hand side of `+`, not `fn() -> A` | |
0731742a | 20 | --> $DIR/impl-trait-plus-priority.rs:29:10 |
2c00a5a8 | 21 | | |
0531ce1d | 22 | LL | type A = fn() -> A + B; |
2c00a5a8 XL |
23 | | ^^^^^^^^^^^^^ perhaps you forgot parentheses? |
24 | ||
25 | error: ambiguous `+` in a type | |
0731742a | 26 | --> $DIR/impl-trait-plus-priority.rs:32:18 |
2c00a5a8 | 27 | | |
0531ce1d | 28 | LL | type A = Fn() -> impl A +; |
2c00a5a8 XL |
29 | | ^^^^^^^^ help: use parentheses to disambiguate: `(impl A)` |
30 | ||
31 | error: ambiguous `+` in a type | |
0731742a | 32 | --> $DIR/impl-trait-plus-priority.rs:34:18 |
2c00a5a8 | 33 | | |
0531ce1d | 34 | LL | type A = Fn() -> impl A + B; |
2c00a5a8 XL |
35 | | ^^^^^^^^^^ help: use parentheses to disambiguate: `(impl A + B)` |
36 | ||
37 | error: ambiguous `+` in a type | |
0731742a | 38 | --> $DIR/impl-trait-plus-priority.rs:36:18 |
2c00a5a8 | 39 | | |
0531ce1d | 40 | LL | type A = Fn() -> dyn A + B; |
2c00a5a8 XL |
41 | | ^^^^^^^^^ help: use parentheses to disambiguate: `(dyn A + B)` |
42 | ||
43 | error: ambiguous `+` in a type | |
0731742a | 44 | --> $DIR/impl-trait-plus-priority.rs:40:11 |
2c00a5a8 | 45 | | |
0531ce1d | 46 | LL | type A = &impl A +; |
2c00a5a8 XL |
47 | | ^^^^^^^^ help: use parentheses to disambiguate: `(impl A)` |
48 | ||
49 | error: ambiguous `+` in a type | |
0731742a | 50 | --> $DIR/impl-trait-plus-priority.rs:42:11 |
2c00a5a8 | 51 | | |
0531ce1d | 52 | LL | type A = &impl A + B; |
2c00a5a8 XL |
53 | | ^^^^^^^^^^ help: use parentheses to disambiguate: `(impl A + B)` |
54 | ||
55 | error: ambiguous `+` in a type | |
0731742a | 56 | --> $DIR/impl-trait-plus-priority.rs:44:11 |
2c00a5a8 | 57 | | |
0531ce1d | 58 | LL | type A = &dyn A + B; |
2c00a5a8 XL |
59 | | ^^^^^^^^^ help: use parentheses to disambiguate: `(dyn A + B)` |
60 | ||
61 | error[E0178]: expected a path on the left-hand side of `+`, not `&A` | |
0731742a | 62 | --> $DIR/impl-trait-plus-priority.rs:46:10 |
2c00a5a8 | 63 | | |
0531ce1d | 64 | LL | type A = &A + B; |
2c00a5a8 XL |
65 | | ^^^^^^ help: try adding parentheses: `&(A + B)` |
66 | ||
67 | error: aborting due to 11 previous errors | |
68 | ||
0531ce1d | 69 | For more information about this error, try `rustc --explain E0178`. |