diff options
Diffstat (limited to 'crates/ra_assists/src/doc_tests')
-rw-r--r-- | crates/ra_assists/src/doc_tests/generated.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crates/ra_assists/src/doc_tests/generated.rs b/crates/ra_assists/src/doc_tests/generated.rs index 4ab09b167..3f56dd508 100644 --- a/crates/ra_assists/src/doc_tests/generated.rs +++ b/crates/ra_assists/src/doc_tests/generated.rs | |||
@@ -549,6 +549,23 @@ fn main() { | |||
549 | } | 549 | } |
550 | 550 | ||
551 | #[test] | 551 | #[test] |
552 | fn doctest_remove_mut() { | ||
553 | check( | ||
554 | "remove_mut", | ||
555 | r#####" | ||
556 | impl Walrus { | ||
557 | fn feed(&mut<|> self, amount: u32) {} | ||
558 | } | ||
559 | "#####, | ||
560 | r#####" | ||
561 | impl Walrus { | ||
562 | fn feed(&self, amount: u32) {} | ||
563 | } | ||
564 | "#####, | ||
565 | ) | ||
566 | } | ||
567 | |||
568 | #[test] | ||
552 | fn doctest_replace_if_let_with_match() { | 569 | fn doctest_replace_if_let_with_match() { |
553 | check( | 570 | check( |
554 | "replace_if_let_with_match", | 571 | "replace_if_let_with_match", |