summaryrefslogtreecommitdiffstats
path: root/src/test/ui/methods/issues/issue-90315.rs
blob: 01bf9f48402466cd15cc2380de99709e76bdecf5 (plain)
1
2
3
4
5
6
7
fn main() {
  let arr = &[0,1,2,3];
  for _i in 0..arr.len().rev() { //~ERROR not an iterator
     // The above error used to say “the method `rev` exists for type `usize`”.
     // This regression test ensures it doesn't say that any more.
  }
}