]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-15094.rs
1 #![feature(fn_traits, unboxed_closures)]
9 impl<T
: fmt
::Debug
> ops
::FnOnce
<(),> for Debuger
<T
> {
11 fn call_once(self, _args
: ()) {
12 //~^ ERROR `call_once` has an incompatible type for trait
13 //~| expected fn pointer `extern "rust-call" fn
14 //~| found fn pointer `fn
15 println
!("{:?}", self.x
);
19 fn make_shower
<T
>(x
: T
) -> Debuger
<T
> {
24 let show3
= make_shower(3);