for x in xs.iter()
-> for x in &xs
This commit is contained in:
parent
9f90d666e0
commit
d5d7e6565a
269 changed files with 1063 additions and 1064 deletions
|
@ -1163,7 +1163,7 @@ mod test {
|
|||
"impl z { fn a (self: Foo, &myarg: i32) {} }",
|
||||
];
|
||||
|
||||
for &src in srcs.iter() {
|
||||
for &src in &srcs {
|
||||
let spans = get_spans_of_pat_idents(src);
|
||||
let Span{ lo, hi, .. } = spans[0];
|
||||
assert!("self" == &src[lo.to_usize()..hi.to_usize()],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue