// Copyright 2018 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. #![feature(universal_impl_trait)] #![crate_name = "foo"] use std::io::Read; // @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 {}