mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
14 lines
461 B
Rust
14 lines
461 B
Rust
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() {}
|