rust/tests/source/paths.rs
Eli Friedman 2fff041b43 Pass in whether an ast::Path is in an expression context.
This gets rid of a slightly nasty hack involving scanning the source
expression for a ":".
2015-11-14 13:54:57 -08:00

24 lines
617 B
Rust

fn main() {
let constellation_chan = Constellation::<layout::layout_task::LayoutTask, script::script_task::ScriptTask> ::start(
compositor_proxy,
resource_task,
image_cache_task,font_cache_task,
time_profiler_chan,
mem_profiler_chan,
devtools_chan,
storage_task,
supports_clipboard
);
Quux::<ParamOne, // Comment 1
ParamTwo, // Comment 2
>::some_func();
< *mut JSObject >:: relocate(entry);
let x: Foo/*::*/<A >;
}
fn op(foo: Bar, key : &[u8], upd : Fn(Option<&memcache::Item> , Baz ) -> Result) -> MapResult {}