rust/tests/ui/issues/issue-22603.rs

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

16 lines
237 B
Rust
Raw Normal View History

//@ check-pass
#![feature(unboxed_closures, fn_traits)]
2019-06-12 15:18:32 +00:00
struct Foo;
impl<A> FnOnce<(A,)> for Foo {
type Output = ();
extern "rust-call" fn call_once(self, (_,): (A,)) {
}
}
fn main() {
println!("{:?}", Foo("bar"));
}