rust/tests/rustdoc/constructor-imports.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
293 B
Rust
Raw Normal View History

#![crate_name = "foo"]
pub mod a {
pub struct Foo;
pub enum Bar {
Baz,
}
}
//@ count 'foo/index.html' '//*[code="pub use a::Foo;"]' 1
#[doc(no_inline)]
pub use a::Foo;
//@ count 'foo/index.html' '//*[code="pub use a::Bar::Baz;"]' 1
#[doc(no_inline)]
pub use a::Bar::Baz;