]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/paths.rs
Rollup merge of #100804 - GuillaumeGomez:search-results-color-ayu, r=notriddle
[rust.git] / src / tools / rustfmt / tests / source / paths.rs
1 // rustfmt-normalize_comments: true
2
3 fn main() {
4    let constellation_chan = Constellation::<layout::layout_task::LayoutTask,  script::script_task::ScriptTask> ::start(
5      compositor_proxy,
6      resource_task,
7      image_cache_task,font_cache_task,
8      time_profiler_chan,
9      mem_profiler_chan,
10      devtools_chan,
11      storage_task,
12      supports_clipboard
13     );
14
15      Quux::<ParamOne,   // Comment 1
16             ParamTwo,   // Comment 2
17                     >::some_func();
18
19     < *mut JSObject >:: relocate(entry);
20
21     let x: Foo<A   >;
22     let x: Foo/*::*/<A>;
23 }
24
25 fn op(foo: Bar, key : &[u8], upd : Fn(Option<&memcache::Item> , Baz  ) -> Result) -> MapResult {}