Sign in
fuchsia
/
third_party
/
rust
/
51cc3cdcf060c1bf3e4d45947f7a6bc20f9960f7
/
.
/
src
/
test
/
ui
/
issues
/
issue-22603.rs
blob: e298316f3b98ebc80322f50df5650694741f264f [
file
] [
log
] [
blame
]
// skip-codegen
// compile-pass
#![
feature
(
unboxed_closures
,
fn_traits
)]
struct
Foo
;
impl
<
A
>
FnOnce
<(
A
,)>
for
Foo
{
type
Output
=
();
extern
"rust-call"
fn
call_once
(
self
,
(
_
,):
(
A
,))
{
}
}
fn
main
()
{
println
!(
"{:?}"
,
Foo
(
"bar"
));
}