isolate the rustc crashing bug in a test

This commit is contained in:
Geoffroy Couprie 2014-11-12 14:54:07 +01:00
parent b79fba3e48
commit a345b06d25
2 changed files with 13 additions and 1 deletions

View File

@ -27,7 +27,6 @@ fn main() {
p.push(|par| { par.map(print) });
p.push(|par| {println!("par: {}", par); par});
//p.push(pr);
()
});
}

View File

@ -352,3 +352,16 @@ fn file_chain_test() {
p.push(|par| par.map(accline).mapf(|v2: &[u8]| str::from_utf8(v2.as_slice())).map(print));
});
}*/
/* FIXME: this makes rustc weep
fn pr(par: Parser<(),&[u8]>) -> Parser<&[u8], ()> {
Error(0)
}
#[test]
fn rustc_panic_test() {
FileProducer::new("links.txt", 20).map(|producer: FileProducer| {
let mut p = producer;
p.push(pr);
});
}*/