2015-10-17 07:19:55 -05:00
|
|
|
fn types() {
|
|
|
|
let x: [ Vec < _ > ] = [];
|
|
|
|
let y: * mut [ SomeType ; konst_funk() ] = expr();
|
|
|
|
let z: (/*#digits*/ usize, /*exp*/ i16) = funk();
|
2015-10-17 08:56:53 -05:00
|
|
|
let z: ( usize /*#digits*/ , i16 /*exp*/ ) = funk();
|
2015-10-17 07:19:55 -05:00
|
|
|
}
|
2016-04-11 04:20:03 -05:00
|
|
|
|
|
|
|
struct F {
|
|
|
|
f: extern "C" fn(x: u8, ... /* comment */),
|
|
|
|
g: extern "C" fn(x: u8,/* comment */ ...),
|
|
|
|
h: extern "C" fn(x: u8, ... ),
|
|
|
|
i: extern "C" fn(x: u8, /* comment 4*/ y: String, // comment 3
|
|
|
|
z: Foo, /* comment */ .../* comment 2*/ ),
|
|
|
|
}
|
2016-05-26 17:39:28 -05:00
|
|
|
|
|
|
|
fn issue_1006(def_id_to_string: for<'a, 'b> unsafe fn(TyCtxt<'b, 'tcx, 'tcx>, DefId) -> String) {}
|