rust/tests/rustdoc/issue-100620.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
266 B
Rust
Raw Normal View History

2022-08-18 01:12:46 +00:00
pub trait Bar<S> {}
pub trait Qux<T> {}
pub trait Foo<T, S> {
fn bar()
where
T: Bar<S>,
{
}
}
pub struct Concrete;
impl<S> Foo<(), S> for Concrete {}
impl<T, S> Bar<S> for T where S: Qux<T> {}
impl<T, S> Qux<T> for S where T: Bar<S> {}