2015-06-23 15:58:58 +02:00
|
|
|
|
|
|
|
fn simple(/*pre-comment on a function!?*/ i: i32/*yes, it's possible! */
|
|
|
|
,response: NoWay /* hose */) {"cool"}
|
|
|
|
|
|
|
|
|
|
|
|
fn weird_comment(/* /*/ double level */ comment */ x: Hello /*/*/* tripple, even */*/*/,
|
|
|
|
// Does this work?
|
|
|
|
y: World
|
|
|
|
) {
|
|
|
|
simple(/* does this preserve comments now? */ 42, NoWay)
|
|
|
|
}
|
2015-08-14 14:09:19 +02: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 13:51:00 +02:00
|
|
|
|
2015-09-17 21:35:03 +02:00
|
|
|
fn foo() -> ! {}
|
|
|
|
|
2015-09-11 12:24:13 +02:00
|
|
|
pub fn http_fetch_async(listener:Box< AsyncCORSResponseListener+Send >, script_chan: Box<ScriptChan+Send>) {
|
|
|
|
}
|
|
|
|
|
2015-09-04 13:51:00 +02:00
|
|
|
fn some_func<T:Box<Trait+Bound>>(val:T){}
|