]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/issue-26638.rs
Rollup merge of #100861 - RalfJung:const-ice, r=oli-obk
[rust.git] / src / test / ui / lifetimes / issue-26638.rs
1 fn parse_type(iter: Box<dyn Iterator<Item=&str>+'static>) -> &str { iter.next() }
2 //~^ ERROR missing lifetime specifier [E0106]
3 //~| ERROR mismatched types
4
5 fn parse_type_2(iter: fn(&u8)->&u8) -> &str { iter() }
6 //~^ ERROR missing lifetime specifier [E0106]
7 //~| ERROR mismatched types
8 //~| ERROR this function takes 1 argument but 0 arguments were supplied
9
10 fn parse_type_3() -> &str { unimplemented!() }
11 //~^ ERROR missing lifetime specifier [E0106]
12
13 fn main() {}