We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96a7c6a commit 16995ceCopy full SHA for 16995ce
crates/ide/src/goto_definition.rs
@@ -532,6 +532,24 @@ fn bar() {
532
$0foo!() => {}
533
}
534
535
+"#,
536
+ );
537
+ }
538
+
539
+ #[test]
540
+ fn goto_definition_works_for_consts_inside_range_pattern() {
541
+ check(
542
+ r#"
543
+//- /lib.rs
544
+const A: u32 = 0;
545
+ //^
546
547
+fn bar(v: u32) {
548
+ match v {
549
+ 0..=$0A => {}
550
+ _ => {}
551
552
+}
553
"#,
554
);
555
0 commit comments