diff options
Diffstat (limited to 'tests/rustdoc-js/where-clause.rs')
| -rw-r--r-- | tests/rustdoc-js/where-clause.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/rustdoc-js/where-clause.rs b/tests/rustdoc-js/where-clause.rs index 808561feee2..f8bdc072216 100644 --- a/tests/rustdoc-js/where-clause.rs +++ b/tests/rustdoc-js/where-clause.rs @@ -14,3 +14,9 @@ pub trait T2<'a, T> { } pub fn presto<A, B>(_: A, _: B) where A: T1, B: for <'b> T2<'b, Nested> {} + +pub trait Shazam {} + +pub fn bippety<X>() -> &'static X where X: Shazam { + panic!() +} |
