about summary refs log tree commit diff
path: root/src/test/ui/issues/issue-31173.rs
blob: 25be266c5289332cd74c311a2340060efc8c1bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// FIXME: missing sysroot spans (#53081)
// ignore-i586-unknown-linux-gnu
// ignore-i586-unknown-linux-musl
// ignore-i686-unknown-linux-musl
use std::vec::IntoIter;

pub fn get_tok(it: &mut IntoIter<u8>) {
    let mut found_e = false;

    let temp: Vec<u8> = it.take_while(|&x| {
        found_e = true;
        false
    })
        .cloned()
        //~^ ERROR type mismatch resolving
        //~| expected type `u8`
        //~| found reference `&_`
        .collect(); //~ ERROR no method named `collect`
}

fn main() {}