diff options
Diffstat (limited to 'tests/rustdoc/auto/auto-trait-bounds-where-51236.rs')
| -rw-r--r-- | tests/rustdoc/auto/auto-trait-bounds-where-51236.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/rustdoc/auto/auto-trait-bounds-where-51236.rs b/tests/rustdoc/auto/auto-trait-bounds-where-51236.rs new file mode 100644 index 00000000000..c892b6d0abf --- /dev/null +++ b/tests/rustdoc/auto/auto-trait-bounds-where-51236.rs @@ -0,0 +1,17 @@ +// https://github.com/rust-lang/rust/issues/51236 +#![crate_name="foo"] + +use std::marker::PhantomData; + +pub mod traits { + pub trait Owned<'a> { + type Reader; + } +} + +//@ has foo/struct.Owned.html +//@ has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \ +// "impl<T> Send for Owned<T>where <T as Owned<'static>>::Reader: Send" +pub struct Owned<T> where T: for<'a> ::traits::Owned<'a> { + marker: PhantomData<<T as ::traits::Owned<'static>>::Reader>, +} |
