| // https://github.com/rust-lang/rust/issues/43869 |
| pub fn g() -> impl Iterator<Item=u8> { |
| pub fn h() -> (impl Iterator<Item=u8>) { |
| pub fn i() -> impl Iterator<Item=u8> + 'static { |
| pub fn j() -> impl Iterator<Item=u8> + Clone { |
| pub fn k() -> [impl Clone; 2] { |
| pub fn l() -> (impl Clone, impl Default) { |
| pub fn m() -> &'static impl Clone { |
| pub fn n() -> *const impl Clone { |
| pub fn o() -> &'static [impl Clone] { |
| pub fn test_44731_0() -> Box<impl Iterator<Item=u8>> { |
| pub fn test_44731_1() -> Result<Box<impl Clone>, ()> { |
| // NOTE these involve Fn sugar, where impl Trait is disallowed for now, see issue #45994 |
| //pub fn test_44731_2() -> Box<Fn(impl Clone)> { |
| //pub fn test_44731_3() -> Box<Fn() -> impl Clone> { |
| pub fn test_44731_4() -> Box<Iterator<Item=impl Clone>> { |
| //@ has foo/fn.test_44731_0.html |
| //@ has foo/fn.test_44731_1.html |
| //@ has foo/fn.test_44731_4.html |