2017-01-16 01:50:27 +00:00
|
|
|
// rustfmt-normalize_comments: true
|
2015-06-23 13:58:58 +00:00
|
|
|
|
|
|
|
fn simple(/*pre-comment on a function!?*/ i: i32/*yes, it's possible! */
|
2015-11-22 13:48:30 +00:00
|
|
|
,response: NoWay /* hose */) {
|
|
|
|
fn op(x: Typ, key : &[u8], upd : Box<Fn(Option<&memcache::Item>) -> (memcache::Status, Result<memcache::Item, Option<String>>)>) -> MapResult {}
|
|
|
|
|
|
|
|
"cool"}
|
2015-06-23 13:58:58 +00:00
|
|
|
|
|
|
|
|
2017-11-01 06:33:55 +00:00
|
|
|
fn weird_comment(/* /*/ double level */ comment */ x: Hello /*/*/* triple, even */*/*/,
|
2015-06-23 13:58:58 +00:00
|
|
|
// Does this work?
|
|
|
|
y: World
|
|
|
|
) {
|
|
|
|
simple(/* does this preserve comments now? */ 42, NoWay)
|
|
|
|
}
|
2015-08-14 12:09:19 +00:00
|
|
|
|
|
|
|
fn generic<T>(arg: T) -> &SomeType
|
|
|
|
where T: Fn(// First arg
|
|
|
|
A,
|
|
|
|
// Second argument
|
|
|
|
B, C, D, /* pre comment */ E /* last comment */) -> &SomeType {
|
|
|
|
arg(a, b, c, d, e)
|
|
|
|
}
|
2015-09-04 11:51:00 +00:00
|
|
|
|
2015-09-17 19:35:03 +00:00
|
|
|
fn foo() -> ! {}
|
|
|
|
|
2015-09-11 10:24:13 +00:00
|
|
|
pub fn http_fetch_async(listener:Box< AsyncCORSResponseListener+Send >, script_chan: Box<ScriptChan+Send>) {
|
|
|
|
}
|
|
|
|
|
2015-09-04 11:51:00 +00:00
|
|
|
fn some_func<T:Box<Trait+Bound>>(val:T){}
|
2015-10-18 20:21:46 +00:00
|
|
|
|
|
|
|
fn zzzzzzzzzzzzzzzzzzzz<Type, NodeType>
|
|
|
|
(selff: Type, mut handle: node::Handle<IdRef<'id, Node<K, V>>, Type, NodeType>)
|
|
|
|
-> SearchStack<'a, K, V, Type, NodeType>{
|
|
|
|
}
|
2015-11-22 15:07:38 +00:00
|
|
|
|
|
|
|
unsafe fn generic_call(cx: *mut JSContext, argc: libc::c_uint, vp: *mut JSVal,
|
|
|
|
is_lenient: bool,
|
|
|
|
call: unsafe extern fn(*const JSJitInfo, *mut JSContext,
|
|
|
|
HandleObject, *mut libc::c_void, u32,
|
|
|
|
*mut JSVal)
|
|
|
|
-> u8) {
|
|
|
|
let f: fn ( _ , _ ) -> _ = panic!() ;
|
|
|
|
}
|
2015-12-01 21:09:37 +00:00
|
|
|
|
|
|
|
pub fn start_export_thread<C: CryptoSchemee + 'static>(database: &Database, crypto_scheme: &C, block_size: usize, source_path: &Path) -> BonzoResult<mpsc::Consumer<'static, FileInstruction>> {}
|
2017-04-06 09:17:22 +00:00
|
|
|
|
|
|
|
pub fn waltz(cwd: &Path) -> CliAssert {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
formatted_comment = rewrite_comment(comment, block_style, width, offset, formatting_fig);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-09-28 11:15:33 +00:00
|
|
|
|
|
|
|
// #2003
|
|
|
|
mod foo {
|
|
|
|
fn __bindgen_test_layout_i_open0_c_open1_char_a_open2_char_close2_close1_close0_instantiation() {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
}
|
2017-10-24 15:51:04 +00:00
|
|
|
|
|
|
|
// #2082
|
|
|
|
pub(crate) fn init() {}
|
2017-10-28 05:41:58 +00:00
|
|
|
|
|
|
|
crate fn init() {}
|