rust/tests/ui/parser/misspelled-keywords/hrdt.rs

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

17 lines
238 B
Rust
Raw Normal View History

2024-09-01 21:27:43 -05:00
struct Closure<F> {
data: (u8, u16),
func: F,
}
impl<F> Closure<F>
Where for<'a> F: Fn(&'a (u8, u16)) -> &'a u8,
//~^ ERROR expected one of
{
fn call(&self) -> &u8 {
(self.func)(&self.data)
}
}
fn main() {}