1 // can't run rustfix because it doesn't handle multipart suggestions correctly
2 // compile-flags: -Zborrowck=mir
3 // we need the above to avoid ast borrowck failure in recovered code
10 fn foo<'a, 'b>(start: &'a usize, end: &'a usize) {
11 let _x = (*start..*end)
12 .map(|x| S { a: start, b: end })
13 .collect::<Vec<S<_, 'a>>>();
14 //~^ ERROR type provided when a lifetime was expected