1 // rustfmt-normalize_comments: true
3 let x: [ Vec < _ > ] = [];
4 let y: * mut [ SomeType ; konst_funk() ] = expr();
5 let z: (/*#digits*/ usize, /*exp*/ i16) = funk();
6 let z: ( usize /*#digits*/ , i16 /*exp*/ ) = funk();
10 f: extern "C" fn(x: u8, ... /* comment */),
11 g: extern "C" fn(x: u8,/* comment */ ...),
12 h: extern "C" fn(x: u8, ... ),
13 i: extern "C" fn(x: u8, /* comment 4*/ y: String, // comment 3
14 z: Foo, /* comment */ .../* comment 2*/ ),
17 fn issue_1006(def_id_to_string: for<'a, 'b> unsafe fn(TyCtxt<'b, 'tcx, 'tcx>, DefId) -> String) {}
19 fn impl_trait_fn_1() -> impl Fn(i32) -> Option<u8> {}
21 fn impl_trait_fn_2<E>() -> impl Future<Item=&'a i64,Error=E> {}
24 do_parse!(name: take_while1!(is_token) >> (Header))
35 Box<FnMut(&ProjectState, serde_json::Value, bool) -> () + Sync + Send>,
38 self.query_callbacks()(&query_id)
43 pub fn do_something<'a, T: Trait1 + Trait2 + 'a>(&fooo: u32) -> impl Future<
46 ), Error = SomeError> + 'a,
47 impl Future<Item = (), Error = SomeError> + 'a,
48 impl Future<Item = (), Error = SomeError > + 'a,
56 pub fn do_something<'a, T: Trait1 + Trait2 + 'a>( &fooo: u32,
59 impl Future<Item = (), Error = SomeError> + 'a,
60 impl Future<Item = (), Error = SomeError> + 'a,
61 impl Future<Item = (), Error = SomeError> + 'a,
67 impl Future<Item = (), Error = SomeError> + 'a,
68 impl Future<Item = (), Error = SomeError> + 'a,
69 impl Future<Item = (), Error = SomeError> + 'a,
75 impl Future<Item = (), Error = SomeError> + 'a,
76 impl Future<Item = (), Error = SomeError> + 'a,
77 impl Future<Item = (), Error = SomeError> + 'a,
89 type Target = ( $foo_api ) + 'static;
93 type Target = ( FooAPI ) + 'static;
105 let opt: &mut Option<MyLongTypeHere> =
106 unsafe { &mut *self.future.get() };