|
1 | 1 | error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `:`
|
2 |
| - --> $DIR/type-ascription-precedence.rs:26:7 |
| 2 | + --> $DIR/type-ascription-precedence.rs:27:7 |
3 | 3 | |
|
4 | 4 | LL | &S: &S;
|
5 | 5 | | ^ expected one of 8 possible tokens
|
6 | 6 |
|
7 |
| -error: aborting due to previous error |
| 7 | +error: expected identifier, found `:` |
| 8 | + --> $DIR/type-ascription-precedence.rs:33:8 |
| 9 | + | |
| 10 | +LL | *(S: Z); |
| 11 | + | ^ expected identifier |
| 12 | + |
| 13 | +error: expected identifier, found `:` |
| 14 | + --> $DIR/type-ascription-precedence.rs:37:8 |
| 15 | + | |
| 16 | +LL | -(S: Z); |
| 17 | + | ^ expected identifier |
| 18 | + |
| 19 | +error: expected one of `.`, `;`, `?`, `}`, or an operator, found `:` |
| 20 | + --> $DIR/type-ascription-precedence.rs:41:12 |
| 21 | + | |
| 22 | +LL | (S + Z): Z; |
| 23 | + | ^ expected one of `.`, `;`, `?`, `}`, or an operator |
| 24 | + |
| 25 | +error: expected one of `.`, `;`, `?`, `}`, or an operator, found `:` |
| 26 | + --> $DIR/type-ascription-precedence.rs:45:12 |
| 27 | + | |
| 28 | +LL | (S * Z): Z; |
| 29 | + | ^ expected one of `.`, `;`, `?`, `}`, or an operator |
| 30 | + |
| 31 | +error: expected identifier, found `:` |
| 32 | + --> $DIR/type-ascription-precedence.rs:49:11 |
| 33 | + | |
| 34 | +LL | S .. S: S; |
| 35 | + | ^ expected identifier |
| 36 | + | |
| 37 | + = note: type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728> |
| 38 | + |
| 39 | +error: expected one of `.`, `;`, `?`, `}`, or an operator, found `:` |
| 40 | + --> $DIR/type-ascription-precedence.rs:53:13 |
| 41 | + | |
| 42 | +LL | (S .. S): S; |
| 43 | + | ^ expected one of `.`, `;`, `?`, `}`, or an operator |
| 44 | + |
| 45 | +error: aborting due to 7 previous errors |
8 | 46 |
|
0 commit comments