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 Move some tests 2024-04-21 15:43:43 -03:00
assoc-fn-call-on-variant.rs Add test for assoc fn suggestion on enum variant 2024-11-03 17:15:22 +00:00
assoc-fn-call-on-variant.stderr Properly suggest E::assoc when we encounter E::Variant::assoc 2024-11-03 18:55:19 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Add test 2024-04-15 18:48:12 -04:00
error-variant-with-turbofishes.stderr More accurate suggestions when writing wrong style of enum variant literal 2024-07-18 18:20:35 +00:00
issue-1821.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-19340-1.rs Move some tests 2024-04-21 15:43:43 -03:00
issue-19340-2.rs Move some tests 2024-04-21 15:43:43 -03:00
issue-23304-1.rs Move some tests 2024-04-21 15:43:43 -03:00
issue-23304-2.rs Move some tests 2024-04-21 15:43:43 -03:00
issue-42747.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-67945-1.rs
issue-67945-1.stderr
issue-67945-2.rs
issue-67945-2.stderr
nested-enum.rs Tweak tests to avoid confusing suggestion output 2024-07-12 03:02:57 +00:00
nested-enum.stderr Tweak tests to avoid confusing suggestion output 2024-07-12 03:02:57 +00:00
suggest-default-attribute.rs
suggest-default-attribute.stderr
union-in-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00