Skip to content

Commit 22c6462

Browse files
committed
test doc.rs
This will pass build on stable but fail current nightly due to rust-lang/rust#38176 . So we are just checking if doc.rs generates stuff if nightly fails but stable passes
1 parent c045d76 commit 22c6462

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/main.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
//! recursively searched and pruned of duplicate library dependencies.
1111
//!
1212
//! Currently this only works for `.rlib` dependencies.
13+
//! New stuff
14+
15+
#![allow(unused)]
1316

1417
extern crate docopt;
1518
extern crate rustc_serialize;
@@ -22,6 +25,25 @@ use std::collections::HashMap;
2225
use std::fs::{self, ReadDir};
2326
use std::path::PathBuf;
2427

28+
mod foo {
29+
pub struct Foo;
30+
}
31+
32+
mod bar {
33+
pub struct Foo;
34+
}
35+
36+
mod baz {
37+
use foo::*;
38+
39+
mod inner {
40+
use bar::*;
41+
use super::*;
42+
43+
const FOO: Foo = Foo;
44+
}
45+
}
46+
2547
static USAGE: &'static str = "
2648
Usage:
2749
cargo prune [options]

0 commit comments

Comments
 (0)