about summary refs log tree commit diff
path: root/tests/ui/lifetimes/issue-26638.rs
blob: e73cf21bd6cfe8d35bbd13bfc0797901c65ebffe (plain)
1
2
3
4
5
6
7
8
9
10
11
fn parse_type(iter: Box<dyn Iterator<Item=&str>+'static>) -> &str { iter.next() }
//~^ ERROR missing lifetime specifier [E0106]

fn parse_type_2(iter: fn(&u8)->&u8) -> &str { iter() }
//~^ ERROR missing lifetime specifier [E0106]
//~| ERROR function takes 1 argument but 0 arguments were supplied

fn parse_type_3() -> &str { unimplemented!() }
//~^ ERROR missing lifetime specifier [E0106]

fn main() {}