diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/lsp/rust/src/foo.rs | 3 | ||||
-rw-r--r-- | test/lsp/rust/src/main.rs | 4 |
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()); } |