]> git.lizzy.rs Git - rust.git/blob - tests/target/paths.rs
Add a more lightweight method for rewriting comments when we are not normalising
[rust.git] / tests / target / paths.rs
1 // rustfmt-normalize_comments: true
2
3 fn main() {
4     let constellation_chan =
5         Constellation::<layout::layout_task::LayoutTask,
6                         script::script_task::ScriptTask>::start(compositor_proxy,
7                                                                 resource_task,
8                                                                 image_cache_task,
9                                                                 font_cache_task,
10                                                                 time_profiler_chan,
11                                                                 mem_profiler_chan,
12                                                                 devtools_chan,
13                                                                 storage_task,
14                                                                 supports_clipboard);
15
16     Quux::<ParamOne /* Comment 1 */, ParamTwo /* Comment 2 */>::some_func();
17
18     <*mut JSObject>::relocate(entry);
19
20     let x: Foo<A>;
21     let x: Foo/*::*/<A>;
22 }
23
24 fn op(foo: Bar, key: &[u8], upd: Fn(Option<&memcache::Item>, Baz) -> Result) -> MapResult {}