]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lifetimes/issue-26638.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / lifetimes / issue-26638.rs
CommitLineData
dc9dc135 1fn 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
5fn 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
10fn parse_type_3() -> &str { unimplemented!() }
11//~^ ERROR missing lifetime specifier [E0106]
223e47cc 12
d9579d0f 13fn main() {}