summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lifetimes/issue-26638.rs
blob: 000ab6492bb96d6f8d0d04363e424557f7244e0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
fn parse_type(iter: Box<dyn Iterator<Item=&str>+'static>) -> &str { iter.next() }
//~^ ERROR missing lifetime specifier [E0106]
//~| ERROR mismatched types

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

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

fn main() {}