mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Fix test case invalid syntax
This commit is contained in:
parent
5c570fa770
commit
f66ca1bd2e
@ -343,8 +343,8 @@ fn test(x: &str, y: isize) {
|
|||||||
let b = [a, a];
|
let b = [a, a];
|
||||||
let c = [b, b];
|
let c = [b, b];
|
||||||
|
|
||||||
let d = [y, 1, 2, 3]
|
let d = [y, 1, 2, 3];
|
||||||
let d = [1, y, 2, 3]
|
let d = [1, y, 2, 3];
|
||||||
let e = [y];
|
let e = [y];
|
||||||
let f = [d, d];
|
let f = [d, d];
|
||||||
let g = [e, e];
|
let g = [e, e];
|
||||||
|
@ -1,52 +1,52 @@
|
|||||||
[9; 10) 'x': &str
|
[9; 10) 'x': &str
|
||||||
[18; 19) 'y': isize
|
[18; 19) 'y': isize
|
||||||
[28; 291) '{ ... []; }': ()
|
[28; 293) '{ ... []; }': ()
|
||||||
[38; 39) 'a': [&str]
|
[38; 39) 'a': [_]
|
||||||
[42; 45) '[x]': [&str]
|
[42; 45) '[x]': [_]
|
||||||
[43; 44) 'x': &str
|
[43; 44) 'x': &str
|
||||||
[55; 56) 'b': [[&str]]
|
[55; 56) 'b': [_]
|
||||||
[59; 65) '[a, a]': [[&str]]
|
[59; 65) '[a, a]': [_]
|
||||||
[60; 61) 'a': [&str]
|
[60; 61) 'a': [_]
|
||||||
[63; 64) 'a': [&str]
|
[63; 64) 'a': [_]
|
||||||
[75; 76) 'c': [[[&str]]]
|
[75; 76) 'c': [_]
|
||||||
[79; 85) '[b, b]': [[[&str]]]
|
[79; 85) '[b, b]': [_]
|
||||||
[80; 81) 'b': [[&str]]
|
[80; 81) 'b': [_]
|
||||||
[83; 84) 'b': [[&str]]
|
[83; 84) 'b': [_]
|
||||||
[96; 97) 'd': [isize]
|
[96; 97) 'd': [_]
|
||||||
[100; 112) '[y, 1, 2, 3]': [isize]
|
[100; 112) '[y, 1, 2, 3]': [_]
|
||||||
[101; 102) 'y': isize
|
[101; 102) 'y': isize
|
||||||
[104; 105) '1': isize
|
[104; 105) '1': isize
|
||||||
[107; 108) '2': isize
|
[107; 108) '2': isize
|
||||||
[110; 111) '3': isize
|
[110; 111) '3': isize
|
||||||
[121; 122) 'd': [isize]
|
[122; 123) 'd': [_]
|
||||||
[125; 137) '[1, y, 2, 3]': [isize]
|
[126; 138) '[1, y, 2, 3]': [_]
|
||||||
[126; 127) '1': isize
|
[127; 128) '1': isize
|
||||||
[129; 130) 'y': isize
|
[130; 131) 'y': isize
|
||||||
[132; 133) '2': isize
|
[133; 134) '2': isize
|
||||||
[135; 136) '3': isize
|
[136; 137) '3': isize
|
||||||
[146; 147) 'e': [isize]
|
[148; 149) 'e': [_]
|
||||||
[150; 153) '[y]': [isize]
|
[152; 155) '[y]': [_]
|
||||||
[151; 152) 'y': isize
|
[153; 154) 'y': isize
|
||||||
[163; 164) 'f': [[isize]]
|
[165; 166) 'f': [_]
|
||||||
[167; 173) '[d, d]': [[isize]]
|
[169; 175) '[d, d]': [_]
|
||||||
[168; 169) 'd': [isize]
|
[170; 171) 'd': [_]
|
||||||
[171; 172) 'd': [isize]
|
[173; 174) 'd': [_]
|
||||||
[183; 184) 'g': [[isize]]
|
[185; 186) 'g': [_]
|
||||||
[187; 193) '[e, e]': [[isize]]
|
[189; 195) '[e, e]': [_]
|
||||||
[188; 189) 'e': [isize]
|
[190; 191) 'e': [_]
|
||||||
[191; 192) 'e': [isize]
|
[193; 194) 'e': [_]
|
||||||
[204; 205) 'h': [_]
|
[206; 207) 'h': [_]
|
||||||
[208; 214) '[1, 2]': [_]
|
[210; 216) '[1, 2]': [_]
|
||||||
[209; 210) '1': [unknown]
|
[211; 212) '1': i32
|
||||||
[212; 213) '2': [unknown]
|
[214; 215) '2': i32
|
||||||
[224; 225) 'i': [_]
|
[226; 227) 'i': [_]
|
||||||
[228; 238) '["a", "b"]': [_]
|
[230; 240) '["a", "b"]': [_]
|
||||||
[229; 232) '"a"': [unknown]
|
[231; 234) '"a"': &str
|
||||||
[234; 237) '"b"': [unknown]
|
[236; 239) '"b"': &str
|
||||||
[249; 250) 'b': [[&str]]
|
[251; 252) 'b': [_]
|
||||||
[253; 263) '[a, ["b"]]': [[&str]]
|
[255; 265) '[a, ["b"]]': [_]
|
||||||
[254; 255) 'a': [&str]
|
[256; 257) 'a': [_]
|
||||||
[257; 262) '["b"]': [&str]
|
[259; 264) '["b"]': [_]
|
||||||
[258; 261) '"b"': &str
|
[260; 263) '"b"': &str
|
||||||
[273; 274) 'x': [u8]
|
[275; 276) 'x': [u8]
|
||||||
[286; 288) '[]': [u8]
|
[288; 290) '[]': [u8]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user