about summary refs log tree commit diff
path: root/tests/ui/recursion/recursive-static-definition.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-06-27 15:04:56 +0200
committerGitHub <noreply@github.com>2025-06-27 15:04:56 +0200
commit8e7b0b57ea97afd31b05709b3da525036269df57 (patch)
treeb565a849e953b15e5df08cfe7ff175d195738eb9 /tests/ui/recursion/recursive-static-definition.rs
parent8e5fd99b33fb60e96f7c7420c39e95d9807b498e (diff)
parent4e51e67a24d940d3c8069062d07f663ee2034ac3 (diff)
downloadrust-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