mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-23 04:14:28 +00:00
![]() This adds recovery when in array type syntax user writes [X; Y<Z, ...>] instead of [X; Y::<Z, ...>] Fixes #82566 Note that whenever we parse an expression and know that the next token cannot be `,`, we should be calling check_mistyped_turbofish_with_multiple_type_params for this recovery. Previously we only did this for statement parsing (e.g. `let x = f<a, b>;`). We now also do it when parsing the length field in array type syntax. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |