]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-1049.rs
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
[rust.git] / src / tools / rustfmt / tests / target / issue-1049.rs
1 // Test overlong function signature
2 pub unsafe fn reborrow_mut(
3     &mut X: Abcde,
4 ) -> Handle<NodeRef<marker::Mut, K, V, NodeType>, HandleType> {
5 }
6
7 pub fn merge(
8     mut X: Abcdef,
9 ) -> Handle<NodeRef<marker::Mut<'a>, K, V, marker::Internal>, marker::Edge> {
10 }
11
12 impl Handle {
13     pub fn merge(
14         a: Abcd,
15     ) -> Handle<NodeRef<marker::Mut<'a>, K, V, marker::Internal>, marker::Edge> {
16     }
17 }
18
19 // Long function without return type that should not be reformatted.
20 fn veeeeeeeeeeeeeeeeeeeeery_long_name(a: FirstTypeeeeeeeeee, b: SecondTypeeeeeeeeeeeeeeeeeeeeeee) {}
21
22 fn veeeeeeeeeeeeeeeeeeeeeery_long_name(a: FirstTypeeeeeeeeee, b: SecondTypeeeeeeeeeeeeeeeeeeeeeee) {
23 }
24
25 fn veeeeeeeeeeeeeeeeeeeeeeery_long_name(
26     a: FirstTypeeeeeeeeee,
27     b: SecondTypeeeeeeeeeeeeeeeeeeeeeee,
28 ) {
29 }