]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-20644.rs
3 #![allow(unused_imports)]
4 #![allow(stable_features)]
6 // A reduced version of the rustbook ice. The problem this encountered
7 // had to do with codegen ignoring binders.
9 // pretty-expanded FIXME #23616
10 // ignore-cloudabi no std::fs
17 use std
::io
::prelude
::*;
21 pub fn parse_summary
<R
: Read
>(_
: R
, _
: &Path
) {
22 let path_from_root
= Path
::new("");
23 Path
::new(&iter
::repeat("../")
24 .take(path_from_root
.components().count() - 1)
25 .collect
::<String
>());
29 let cwd
= env
::current_dir().unwrap();
30 let src
= cwd
.clone();
31 let summary
= File
::open(&src
.join("SUMMARY.md")).unwrap();
32 let _
= parse_summary(summary
, &src
);