Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-22603.rs
blob: 63d5e3b2ae6cbf52721145c16d42d77a5dea990d [
file
] [
log
] [
blame
] [
edit
]
//@ 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"
));
}