Sign in
fuchsia
/
third_party
/
rust
/
4360fd7f342943b3d25a3eb7064fd3ef7599274e
/
.
/
tests
/
ui
/
issues
/
issue-22603.rs
blob: 63d5e3b2ae6cbf52721145c16d42d77a5dea990d [
file
] [
log
] [
blame
]
//@ check-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"
));
}