Fix test case invalid syntax

This commit is contained in:
Hirokazu Hata 2019-01-15 09:30:18 +09:00
parent 5c570fa770
commit f66ca1bd2e
2 changed files with 47 additions and 47 deletions

View File

@ -343,8 +343,8 @@ fn test(x: &str, y: isize) {
let b = [a, a];
let c = [b, b];
let d = [y, 1, 2, 3]
let d = [1, y, 2, 3]
let d = [y, 1, 2, 3];
let d = [1, y, 2, 3];
let e = [y];
let f = [d, d];
let g = [e, e];

View File

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