mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
14 lines
218 B
Rust
14 lines
218 B
Rust
#![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() {}
|