diff options
Diffstat (limited to 'test/scipfixture')
| -rw-r--r-- | test/scipfixture/Cargo.toml | 11 | ||||
| -rw-r--r-- | test/scipfixture/index.scip | bin | 0 -> 1745 bytes | |||
| -rw-r--r-- | test/scipfixture/lib.rs | 4 | ||||
| -rw-r--r-- | test/scipfixture/main.rs | 7 |
4 files changed, 22 insertions, 0 deletions
diff --git a/test/scipfixture/Cargo.toml b/test/scipfixture/Cargo.toml new file mode 100644 index 00000000..b981003b --- /dev/null +++ b/test/scipfixture/Cargo.toml @@ -0,0 +1,11 @@ +# A crate rust-analyzer indexed once (`rust-analyzer scip .`): its +# index.scip is the real indexer's output the T1 language cases read +# (test/behaviour/language_servers.zig), beside their hand-made ones. +[package] +name = "scipfixture" +version = "0.0.0" +edition = "2021" + +[[bin]] +name = "scipfixture" +path = "main.rs" diff --git a/test/scipfixture/index.scip b/test/scipfixture/index.scip Binary files differnew file mode 100644 index 00000000..f9136e66 --- /dev/null +++ b/test/scipfixture/index.scip diff --git a/test/scipfixture/lib.rs b/test/scipfixture/lib.rs new file mode 100644 index 00000000..a7408596 --- /dev/null +++ b/test/scipfixture/lib.rs @@ -0,0 +1,4 @@ +/// Adds two numbers. +pub fn add(a: i32, b: i32) -> i32 { + a + b +} diff --git a/test/scipfixture/main.rs b/test/scipfixture/main.rs new file mode 100644 index 00000000..39adebaa --- /dev/null +++ b/test/scipfixture/main.rs @@ -0,0 +1,7 @@ +mod lib; +use lib::add; + +fn main() { + let x = add(1, 2); + let _ = x; +} |
