rustdoc: function signature search with traits in where
clause
This commit is contained in:
parent
70adb4e5b4
commit
9d27028391
4 changed files with 55 additions and 21 deletions
16
tests/rustdoc-js/where-clause.rs
Normal file
16
tests/rustdoc-js/where-clause.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
pub struct Nested;
|
||||
|
||||
pub trait Trait<T> {
|
||||
fn thank_you(x: T);
|
||||
}
|
||||
|
||||
pub fn abracadabra<X>(_: X) where X: Trait<Nested> {}
|
||||
|
||||
pub fn alacazam<X>() -> X where X: Trait<Nested> {}
|
||||
|
||||
pub trait T1 {}
|
||||
pub trait T2<'a, T> {
|
||||
fn please(_: &'a T);
|
||||
}
|
||||
|
||||
pub fn presto<A, B>(_: A, _: B) where A: T1, B: for <'b> T2<'b, Nested> {}
|
Loading…
Add table
Add a link
Reference in a new issue