]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-22603.rs
Rollup merge of #100168 - WaffleLapkin:improve_diagnostics_for_missing_type_in_a_cons...
[rust.git] / src / test / ui / issues / issue-22603.rs
1 // check-pass
2
3 #![feature(unboxed_closures, fn_traits)]
4
5 struct Foo;
6
7 impl<A> FnOnce<(A,)> for Foo {
8     type Output = ();
9     extern "rust-call" fn call_once(self, (_,): (A,)) {
10     }
11 }
12
13 fn main() {
14     println!("{:?}", Foo("bar"));
15 }