Reduced test case:
fn foo<'self, T: Iterator<&'self str>>(it: T) { }
fn main() { }
Original bug report follows:
The following function declaration triggers an ICE
fn foo<'self, T: Iterator<&'self str>>(it: T) -> ~[&'self str] {
it.to_owned_vec()
}
fn main() {
let xs = "a/b/c";
printfln!(xs.split_iter('/'))
}
The failure is
task <unnamed> failed at 'assertion failed: rp.is_none()', /Users/kevin/Dev/rust/rust/src/librustc/middle/typeck/collect.rs:1097
Reduced test case:
Original bug report follows:
The following function declaration triggers an ICE
The failure is