rust/tests/ui/fn/issue-39259.rs

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

14 lines
218 B
Rust
Raw Normal View History

#![feature(fn_traits)]
#![feature(unboxed_closures)]
struct S;
impl Fn(u32) -> u32 for S {
//~^ ERROR associated type bindings are not allowed here [E0229]
fn call(&self) -> u32 {
5
}
}
fn main() {}