diff options
Diffstat (limited to 'tests/rustdoc/duplicate_impls/impls.rs')
-rw-r--r-- | tests/rustdoc/duplicate_impls/impls.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rustdoc/duplicate_impls/impls.rs b/tests/rustdoc/duplicate_impls/impls.rs new file mode 100644 index 000000000..6875ad272 --- /dev/null +++ b/tests/rustdoc/duplicate_impls/impls.rs @@ -0,0 +1,12 @@ +pub struct Foo; + +// just so that `Foo` doesn't show up on `Bar`s sidebar +pub mod bar { + pub trait Bar {} +} + +impl Foo { + pub fn new() -> Foo { Foo } +} + +impl bar::Bar for Foo {} |