aboutsummaryrefslogtreecommitdiff
path: root/crates/ide
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide')
-rw-r--r--crates/ide/src/diagnostics.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/crates/ide/src/diagnostics.rs b/crates/ide/src/diagnostics.rs
index 70d5cbd38..8e508639b 100644
--- a/crates/ide/src/diagnostics.rs
+++ b/crates/ide/src/diagnostics.rs
@@ -906,4 +906,28 @@ fn foo() {
906"#, 906"#,
907 ); 907 );
908 } 908 }
909
910 #[test]
911 fn test_rename_incorrect_case_struct_method() {
912 check_fixes(
913 r#"
914pub struct TestStruct;
915
916impl TestStruct {
917 pub fn SomeFn<|>() -> TestStruct {
918 TestStruct
919 }
920}
921"#,
922 r#"
923pub struct TestStruct;
924
925impl TestStruct {
926 pub fn some_fn() -> TestStruct {
927 TestStruct
928 }
929}
930"#,
931 );
932 }
909} 933}