2015-06-23 08:58:58 -05:00
|
|
|
|
|
|
|
fn simple(// pre-comment on a function!?
|
|
|
|
i: i32, // yes, it's possible!
|
|
|
|
response: NoWay /* hose */) {
|
2015-11-22 07:48:30 -06:00
|
|
|
fn op(x: Typ,
|
|
|
|
key: &[u8],
|
|
|
|
upd: Box<Fn(Option<&memcache::Item>)
|
|
|
|
-> (memcache::Status, Result<memcache::Item, Option<String>>)>)
|
|
|
|
-> MapResult {
|
|
|
|
}
|
|
|
|
|
2015-06-23 08:58:58 -05:00
|
|
|
"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 07:09:19 -05:00
|
|
|
|
|
|
|
fn generic<T>(arg: T) -> &SomeType
|
|
|
|
where T: Fn(// First arg
|
|
|
|
A,
|
|
|
|
// Second argument
|
|
|
|
B,
|
|
|
|
C,
|
|
|
|
D,
|
|
|
|
// pre comment
|
2015-11-22 07:48:30 -06:00
|
|
|
E /* last comment */)
|
|
|
|
-> &SomeType
|
2015-08-14 07:09:19 -05:00
|
|
|
{
|
|
|
|
arg(a, b, c, d, e)
|
|
|
|
}
|
2015-09-04 06:51:00 -05:00
|
|
|
|
2015-11-19 20:11:32 -06:00
|
|
|
fn foo() -> ! {}
|
2015-09-17 14:35:03 -05:00
|
|
|
|
2015-09-11 05:24:13 -05:00
|
|
|
pub fn http_fetch_async(listener: Box<AsyncCORSResponseListener + Send>,
|
|
|
|
script_chan: Box<ScriptChan + Send>) {
|
|
|
|
}
|
|
|
|
|
2015-11-19 20:11:32 -06:00
|
|
|
fn some_func<T: Box<Trait + Bound>>(val: T) {}
|
2015-10-18 15:21:46 -05:00
|
|
|
|
|
|
|
fn zzzzzzzzzzzzzzzzzzzz<Type, NodeType>(selff: Type,
|
|
|
|
mut handle: node::Handle<IdRef<'id, Node<K, V>>,
|
|
|
|
Type,
|
|
|
|
NodeType>)
|
|
|
|
-> SearchStack<'a, K, V, Type, NodeType> {
|
|
|
|
}
|