]>
Commit | Line | Data |
---|---|---|
dc9dc135 | 1 | fn parse_type(iter: Box<dyn Iterator<Item=&str>+'static>) -> &str { iter.next() } |
c1a9b12d | 2 | //~^ ERROR missing lifetime specifier [E0106] |
064997fb | 3 | //~| ERROR mismatched types |
85aaf69f | 4 | |
c1a9b12d SL |
5 | fn parse_type_2(iter: fn(&u8)->&u8) -> &str { iter() } |
6 | //~^ ERROR missing lifetime specifier [E0106] | |
064997fb FG |
7 | //~| ERROR mismatched types |
8 | //~| ERROR this function takes 1 argument but 0 arguments were supplied | |
92a42be0 SL |
9 | |
10 | fn parse_type_3() -> &str { unimplemented!() } | |
11 | //~^ ERROR missing lifetime specifier [E0106] | |
223e47cc | 12 | |
d9579d0f | 13 | fn main() {} |