mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-12-27 16:07:46 +00:00
Add test for indexing
This commit is contained in:
parent
fe3fe80fa2
commit
a39847804d
8
lib/text-size/tests/indexing.rs
Normal file
8
lib/text-size/tests/indexing.rs
Normal file
@ -0,0 +1,8 @@
|
||||
use text_size::*;
|
||||
|
||||
#[test]
|
||||
fn main() {
|
||||
let range = TextRange::default();
|
||||
&""[range];
|
||||
&String::new()[range];
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user