diff options
| author | Sean McArthur <sean.monstar@gmail.com> | 2015-07-31 22:20:25 -0700 |
|---|---|---|
| committer | Sean McArthur <sean.monstar@gmail.com> | 2015-08-08 11:54:15 -0700 |
| commit | cfcd449c4c36c68541c3389878e3262dac5e4746 (patch) | |
| tree | 9b938e41ecaffb056741c5e55d7afd7d01a82d18 /src/test/rustdoc | |
| parent | d03456183e85fe7bd465bbe7c8f67885a2528444 (diff) | |
| download | rust-cfcd449c4c36c68541c3389878e3262dac5e4746.tar.gz rust-cfcd449c4c36c68541c3389878e3262dac5e4746.zip | |
rustc: rename multiple imports in a list
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/viewpath-rename.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/test/rustdoc/viewpath-rename.rs b/src/test/rustdoc/viewpath-rename.rs new file mode 100644 index 00000000000..ccc0acab7f3 --- /dev/null +++ b/src/test/rustdoc/viewpath-rename.rs @@ -0,0 +1,28 @@ +// Copyright 2015 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![crate_name = "foo"] + +pub mod io { + pub trait Reader { fn dummy(&self) { } } +} + +pub enum Maybe<A> { + Just(A), + Nothing +} + +// @has foo/prelude/index.html +pub mod prelude { + // @has foo/prelude/index.html '//code' 'pub use io::{self as FooIo, Reader as FooReader}' + #[doc(no_inline)] pub use io::{self as FooIo, Reader as FooReader}; + // @has foo/prelude/index.html '//code' 'pub use Maybe::{self, Just as MaybeJust, Nothing}' + #[doc(no_inline)] pub use Maybe::{self, Just as MaybeJust, Nothing}; +} |
