Skip to content

Commit

Permalink
test doc.rs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ustulation committed Dec 15, 2016
1 parent c045d76 commit 22c6462
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
//! recursively searched and pruned of duplicate library dependencies.
//!
//! Currently this only works for `.rlib` dependencies.
//! New stuff

#![allow(unused)]

extern crate docopt;
extern crate rustc_serialize;
Expand All @@ -22,6 +25,25 @@ use std::collections::HashMap;
use std::fs::{self, ReadDir};
use std::path::PathBuf;

mod foo {
pub struct Foo;
}

mod bar {
pub struct Foo;
}

mod baz {
use foo::*;

mod inner {
use bar::*;
use super::*;

const FOO: Foo = Foo;
}
}

static USAGE: &'static str = "
Usage:
cargo prune [options]
Expand Down

0 comments on commit 22c6462

Please sign in to comment.