rust/tests/ui/lifetimes/issue-19707.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
184 B
Rust
Raw Normal View History

#![allow(dead_code)]
type Foo = fn(&u8, &u8) -> &u8; //~ ERROR missing lifetime specifier
fn bar<F: Fn(&u8, &u8) -> &u8>(f: &F) {} //~ ERROR missing lifetime specifier
fn main() {}