]> git.proxmox.com Git - rustc.git/blame - src/test/ui/impl-trait/impl-trait-plus-priority.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / impl-trait / impl-trait-plus-priority.stderr
CommitLineData
2c00a5a8 1error: ambiguous `+` in a type
0731742a 2 --> $DIR/impl-trait-plus-priority.rs:23:18
2c00a5a8 3 |
0531ce1d 4LL | type A = fn() -> impl A +;
2c00a5a8
XL
5 | ^^^^^^^^ help: use parentheses to disambiguate: `(impl A)`
6
7error: ambiguous `+` in a type
0731742a 8 --> $DIR/impl-trait-plus-priority.rs:25:18
2c00a5a8 9 |
0531ce1d 10LL | type A = fn() -> impl A + B;
2c00a5a8
XL
11 | ^^^^^^^^^^ help: use parentheses to disambiguate: `(impl A + B)`
12
13error: ambiguous `+` in a type
0731742a 14 --> $DIR/impl-trait-plus-priority.rs:27:18
2c00a5a8 15 |
0531ce1d 16LL | type A = fn() -> dyn A + B;
2c00a5a8
XL
17 | ^^^^^^^^^ help: use parentheses to disambiguate: `(dyn A + B)`
18
19error[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 22LL | type A = fn() -> A + B;
2c00a5a8
XL
23 | ^^^^^^^^^^^^^ perhaps you forgot parentheses?
24
25error: ambiguous `+` in a type
0731742a 26 --> $DIR/impl-trait-plus-priority.rs:32:18
2c00a5a8 27 |
0531ce1d 28LL | type A = Fn() -> impl A +;
2c00a5a8
XL
29 | ^^^^^^^^ help: use parentheses to disambiguate: `(impl A)`
30
31error: ambiguous `+` in a type
0731742a 32 --> $DIR/impl-trait-plus-priority.rs:34:18
2c00a5a8 33 |
0531ce1d 34LL | type A = Fn() -> impl A + B;
2c00a5a8
XL
35 | ^^^^^^^^^^ help: use parentheses to disambiguate: `(impl A + B)`
36
37error: ambiguous `+` in a type
0731742a 38 --> $DIR/impl-trait-plus-priority.rs:36:18
2c00a5a8 39 |
0531ce1d 40LL | type A = Fn() -> dyn A + B;
2c00a5a8
XL
41 | ^^^^^^^^^ help: use parentheses to disambiguate: `(dyn A + B)`
42
43error: ambiguous `+` in a type
0731742a 44 --> $DIR/impl-trait-plus-priority.rs:40:11
2c00a5a8 45 |
0531ce1d 46LL | type A = &impl A +;
2c00a5a8
XL
47 | ^^^^^^^^ help: use parentheses to disambiguate: `(impl A)`
48
49error: ambiguous `+` in a type
0731742a 50 --> $DIR/impl-trait-plus-priority.rs:42:11
2c00a5a8 51 |
0531ce1d 52LL | type A = &impl A + B;
2c00a5a8
XL
53 | ^^^^^^^^^^ help: use parentheses to disambiguate: `(impl A + B)`
54
55error: ambiguous `+` in a type
0731742a 56 --> $DIR/impl-trait-plus-priority.rs:44:11
2c00a5a8 57 |
0531ce1d 58LL | type A = &dyn A + B;
2c00a5a8
XL
59 | ^^^^^^^^^ help: use parentheses to disambiguate: `(dyn A + B)`
60
61error[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 64LL | type A = &A + B;
2c00a5a8
XL
65 | ^^^^^^ help: try adding parentheses: `&(A + B)`
66
67error: aborting due to 11 previous errors
68
0531ce1d 69For more information about this error, try `rustc --explain E0178`.