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