diff options
Diffstat (limited to 'crates/ide/src')
-rw-r--r-- | crates/ide/src/references.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crates/ide/src/references.rs b/crates/ide/src/references.rs index e0830eb4f..ae68b4392 100644 --- a/crates/ide/src/references.rs +++ b/crates/ide/src/references.rs | |||
@@ -406,6 +406,23 @@ enum Foo { | |||
406 | } | 406 | } |
407 | 407 | ||
408 | #[test] | 408 | #[test] |
409 | fn test_find_all_refs_enum_var_field() { | ||
410 | check( | ||
411 | r#" | ||
412 | enum Foo { | ||
413 | A, | ||
414 | B { field<|>: u8 }, | ||
415 | C, | ||
416 | } | ||
417 | "#, | ||
418 | expect![[r#" | ||
419 | field RECORD_FIELD FileId(0) 26..35 26..31 Other | ||
420 | |||
421 | "#]], | ||
422 | ); | ||
423 | } | ||
424 | |||
425 | #[test] | ||
409 | fn test_find_all_refs_two_modules() { | 426 | fn test_find_all_refs_two_modules() { |
410 | check( | 427 | check( |
411 | r#" | 428 | r#" |