]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/paths.rs
Auto merge of #95315 - compiler-errors:pointee-fix, r=pnkfelix
[rust.git] / src / tools / rustfmt / tests / target / paths.rs
1 // rustfmt-normalize_comments: true
2
3 fn main() {
4     let constellation_chan =
5         Constellation::<layout::layout_task::LayoutTask, script::script_task::ScriptTask>::start(
6             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
17     Quux::<
18         ParamOne, // Comment 1
19         ParamTwo, // Comment 2
20     >::some_func();
21
22     <*mut JSObject>::relocate(entry);
23
24     let x: Foo<A>;
25     let x: Foo/*::*/<A>;
26 }
27
28 fn op(foo: Bar, key: &[u8], upd: Fn(Option<&memcache::Item>, Baz) -> Result) -> MapResult {}