diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-06-27 15:04:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-27 15:04:56 +0200 |
| commit | 8e7b0b57ea97afd31b05709b3da525036269df57 (patch) | |
| tree | b565a849e953b15e5df08cfe7ff175d195738eb9 /tests/ui/recursion/recursive-static-definition.rs | |
| parent | 8e5fd99b33fb60e96f7c7420c39e95d9807b498e (diff) | |
| parent | 4e51e67a24d940d3c8069062d07f663ee2034ac3 (diff) | |
| download | rust-8e7b0b57ea97afd31b05709b3da525036269df57.tar.gz rust-8e7b0b57ea97afd31b05709b3da525036269df57.zip | |
Rollup merge of #143065 - compiler-errors:enum-recovery, r=oli-obk
Improve recovery when users write `where:` Improve recovery of `where:`. Fixes https://github.com/rust-lang/rust/issues/143023 The erroneous suggestion was because we were seeing `:` then a type, which the original impl thought must be a struct field. Make this a bit more accurate by checking for a non-reserved ident (which should be a field name). Also, make a custom parser error for `where:` so we can continue parsing after the colon.
Diffstat (limited to 'tests/ui/recursion/recursive-static-definition.rs')
0 files changed, 0 insertions, 0 deletions
