1 pub fn g() -> impl Iterator<Item=u8> {
5 #[allow(unused_parens)]
6 pub fn h() -> (impl Iterator<Item=u8>) {
10 pub fn i() -> impl Iterator<Item=u8> + 'static {
14 pub fn j() -> impl Iterator<Item=u8> + Clone {
18 pub fn k() -> [impl Clone; 2] {
22 pub fn l() -> (impl Clone, impl Default) {
26 pub fn m() -> &'static impl Clone {
30 pub fn n() -> *const impl Clone {
34 pub fn o() -> &'static [impl Clone] {
39 pub fn test_44731_0() -> Box<impl Iterator<Item=u8>> {
43 pub fn test_44731_1() -> Result<Box<impl Clone>, ()> {
47 // NOTE these involve Fn sugar, where impl Trait is disallowed for now, see issue #45994
49 //pub fn test_44731_2() -> Box<Fn(impl Clone)> {
50 // Box::new(|_: u32| {})
53 //pub fn test_44731_3() -> Box<Fn() -> impl Clone> {
57 pub fn test_44731_4() -> Box<Iterator<Item=impl Clone>> {
61 // @has issue_43869/fn.g.html
62 // @has issue_43869/fn.h.html
63 // @has issue_43869/fn.i.html
64 // @has issue_43869/fn.j.html
65 // @has issue_43869/fn.k.html
66 // @has issue_43869/fn.l.html
67 // @has issue_43869/fn.m.html
68 // @has issue_43869/fn.n.html
69 // @has issue_43869/fn.o.html
70 // @has issue_43869/fn.test_44731_0.html
71 // @has issue_43869/fn.test_44731_1.html
72 // @has issue_43869/fn.test_44731_4.html