]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-4245.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / tools / rustfmt / tests / target / issue-4245.rs
1 fn a(
2     a: & // Comment
3     // Another comment
4     'a File,
5 ) {
6 }
7
8 fn b(b: & /* Another Comment */ 'a File) {}
9
10 fn c(c: &'a /*Comment */ mut /*Comment */ File) {}
11
12 fn d(
13     c: & // Comment
14     'b // Multi Line
15     // Comment
16     mut // Multi Line
17     // Comment
18     File,
19 ) {
20 }
21
22 fn e(
23     c: & // Comment
24     File,
25 ) {
26 }
27
28 fn d(
29     c: & // Comment
30     mut // Multi Line
31     // Comment
32     File,
33 ) {
34 }