rust/tests/ui/enum
Esteban Küber e26ad8b67d Properly suggest E::assoc when we encounter E::Variant::assoc
Use the right span when encountering an enum variant followed by an associated item so we don't lose the associated item in the resulting code.

Do not suggest the thing twice, once as a removal of the associated item and a second time as a typo suggestion.
2024-11-03 18:55:19 +00:00
..
auxiliary
assoc-fn-call-on-variant.rs
assoc-fn-call-on-variant.stderr
enum-and-module-in-same-scope.rs
enum-and-module-in-same-scope.stderr
enum-discrim-autosizing.rs
enum-discrim-autosizing.stderr
enum-discrim-too-small2.rs
enum-discrim-too-small2.stderr
enum-discrim-too-small.rs
enum-discrim-too-small.stderr
enum-in-scope.rs
enum-in-scope.stderr
enum-size-variance.rs
enum-size-variance.stderr
enum-to-float-cast-2.rs
enum-to-float-cast-2.stderr
enum-to-float-cast.rs
enum-to-float-cast.stderr
enum-variant-type-2.rs
enum-variant-type-2.stderr
error-variant-with-turbofishes.rs
error-variant-with-turbofishes.stderr
issue-1821.rs
issue-19340-1.rs
issue-19340-2.rs
issue-23304-1.rs
issue-23304-2.rs
issue-42747.rs
issue-67945-1.rs
issue-67945-1.stderr
issue-67945-2.rs
issue-67945-2.stderr
nested-enum.rs
nested-enum.stderr
suggest-default-attribute.rs
suggest-default-attribute.stderr
union-in-enum.rs