aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/references/rename.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide/src/references/rename.rs')
-rw-r--r--crates/ide/src/references/rename.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/crates/ide/src/references/rename.rs b/crates/ide/src/references/rename.rs
index cd721b7eb..4f353852f 100644
--- a/crates/ide/src/references/rename.rs
+++ b/crates/ide/src/references/rename.rs
@@ -1523,4 +1523,29 @@ fn main() {
1523}"#, 1523}"#,
1524 ); 1524 );
1525 } 1525 }
1526
1527 #[test]
1528 fn test_rename_label() {
1529 check(
1530 "'foo",
1531 r#"
1532fn foo<'a>() -> &'a () {
1533 'a: {
1534 'b: loop {
1535 break 'a<|>;
1536 }
1537 }
1538}
1539"#,
1540 r#"
1541fn foo<'a>() -> &'a () {
1542 'foo: {
1543 'b: loop {
1544 break 'foo;
1545 }
1546 }
1547}
1548"#,
1549 )
1550 }
1526} 1551}