]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-91461.stderr
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / parser / issues / issue-91461.stderr
1 error: expected identifier, found reserved identifier `_`
2   --> $DIR/issue-91461.rs:2:7
3    |
4 LL |     a(_:b:,)
5    |       ^ expected identifier, found reserved identifier
6
7 error: expected type, found `,`
8   --> $DIR/issue-91461.rs:2:11
9    |
10 LL |     a(_:b:,)
11    |     -    -^ expected type
12    |     |    |
13    |     |    tried to parse a type due to this type ascription
14    |     while parsing this struct
15    |
16    = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
17    = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information
18
19 error: expected type, found `,`
20   --> $DIR/issue-91461.rs:2:11
21    |
22 LL |     a(_:b:,)
23    |          -^ expected type
24    |          |
25    |          tried to parse a type due to this type ascription
26    |
27    = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
28    = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information
29
30 error: aborting due to 3 previous errors
31