1 // rustfmt-normalize_comments: true
3 fn simple(// pre-comment on a function!?
4 i: i32, // yes, it's possible!
5 response: NoWay /* hose */) {
8 upd: Box<Fn(Option<&memcache::Item>)
9 -> (memcache::Status, Result<memcache::Item, Option<String>>)>)
17 fn weird_comment(// /*/ double level */ comment
18 x: Hello, // /*/* tripple, even */*/
21 simple(// does this preserve comments now?
26 fn generic<T>(arg: T) -> &SomeType
27 where T: Fn(// First arg
42 pub fn http_fetch_async(listener: Box<AsyncCORSResponseListener + Send>,
43 script_chan: Box<ScriptChan + Send>) {
46 fn some_func<T: Box<Trait + Bound>>(val: T) {}
48 fn zzzzzzzzzzzzzzzzzzzz<Type, NodeType>(selff: Type,
49 mut handle: node::Handle<IdRef<'id, Node<K, V>>,
52 -> SearchStack<'a, K, V, Type, NodeType> {
55 unsafe fn generic_call(cx: *mut JSContext,
59 call: unsafe extern "C" fn(*const JSJitInfo,
66 let f: fn(_, _) -> _ = panic!();
69 pub fn start_export_thread<C: CryptoSchemee + 'static>
74 -> BonzoResult<mpsc::Consumer<'static, FileInstruction>> {