]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/fn-args-with-last-line-comment.rs
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
[rust.git] / src / tools / rustfmt / tests / target / fn-args-with-last-line-comment.rs
1 // #1587
2 pub trait X {
3     fn a(&self) -> &'static str;
4     fn bcd(
5         &self,
6         c: &str,         // comment on this arg
7         d: u16,          // comment on this arg
8         e: &Vec<String>, // comment on this arg
9     ) -> Box<Q>;
10 }
11
12 // #1595
13 fn foo(
14     arg1: LongTypeName,
15     arg2: LongTypeName,
16     arg3: LongTypeName,
17     arg4: LongTypeName,
18     arg5: LongTypeName,
19     arg6: LongTypeName,
20     arg7: LongTypeName,
21     //arg8: LongTypeName,
22 ) {
23     // do stuff
24 }