summaryrefslogtreecommitdiff
path: root/test/lsp
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-07 07:19:56 -0400
committerpommicket <pommicket@gmail.com>2023-08-07 07:19:56 -0400
commitb146279b48f6a4f4bea8946cb3f0f1f5cc5a9985 (patch)
tree70069f2f622f3b6190fa1effcfb9ce9e14d8f94b /test/lsp
parentbdbce6fe3c647616d22867bbc82e011c91231dd3 (diff)
handle more complicated renames
Diffstat (limited to 'test/lsp')
-rw-r--r--test/lsp/rust/src/foo.rs3
-rw-r--r--test/lsp/rust/src/main.rs4
2 files changed, 6 insertions, 1 deletions
diff --git a/test/lsp/rust/src/foo.rs b/test/lsp/rust/src/foo.rs
new file mode 100644
index 0000000..08cbd24
--- /dev/null
+++ b/test/lsp/rust/src/foo.rs
@@ -0,0 +1,3 @@
+pub fn a() -> i32 {
+ 8
+}
diff --git a/test/lsp/rust/src/main.rs b/test/lsp/rust/src/main.rs
index e7a11a9..e71b6f7 100644
--- a/test/lsp/rust/src/main.rs
+++ b/test/lsp/rust/src/main.rs
@@ -1,3 +1,5 @@
+mod foo;
+
fn main() {
- println!("Hello, world!");
+ println!("Hello, world! {}", foo::a());
}