diff options
Diffstat (limited to 'tests/rustdoc-js/where-clause.rs')
| -rw-r--r-- | tests/rustdoc-js/where-clause.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rustdoc-js/where-clause.rs b/tests/rustdoc-js/where-clause.rs index f8bdc072216..56c01019fb6 100644 --- a/tests/rustdoc-js/where-clause.rs +++ b/tests/rustdoc-js/where-clause.rs @@ -20,3 +20,11 @@ pub trait Shazam {} pub fn bippety<X>() -> &'static X where X: Shazam { panic!() } + +pub struct Drizzel<T>(T); + +impl<T> Drizzel<T> { + pub fn boppety(&self) -> &T where T: Shazam { + panic!(); + } +} |
