#![crate_name = "foo"]
use std::io::Read;
use std::borrow::Borrow;
// @has foo/fn.foo.html
// @has - //pre 'foo('
// @matches - '_x: impl ('
// @matches - '_x: impl (T);
impl S {
// @has foo/struct.S.html
// @has - 'bar('
// @matches - '_bar: impl ('
// @matches - '_baz:.+struct\.S\.html.+impl .+trait\.Clone\.html'
pub fn baz(_baz: S) {
}
// @has - 'qux('
// @matches - 'trait\.Read\.html'
pub fn qux(_qux: impl IntoIterator- >) {
}
}
// @has - 'method('
// @matches - '_x: impl Trait for S {}
// @has foo/fn.much_universe.html
// @matches - 'T:.+Borrow.+impl .+trait\.Trait\.html'
// @matches - 'U:.+IntoIterator.+= impl.+Iterator\.html.+= impl.+Clone\.html'
// @matches - '_: impl .+trait\.Read\.html.+ \+ .+trait\.Clone\.html'
pub fn much_universe<
T: Borrow,
U: IntoIterator
- >,
>(
_: impl Read + Clone,
) {
}