summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/issue-26638.rs
blob: 4bec3b3415bbc075419ff48d377d651f3ac38a52 (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 function takes 1 argument but 0 arguments were supplied

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

fn main() {}