rust/tests/target/issue-1049.rs

30 lines
794 B
Rust
Raw Normal View History

// Test overlong function signature
2017-06-12 06:01:41 +02:00
pub unsafe fn reborrow_mut(
&mut X: Abcde,
) -> Handle<NodeRef<marker::Mut, K, V, NodeType>, HandleType> {
}
2017-06-12 06:01:41 +02:00
pub fn merge(
mut X: Abcdef,
) -> Handle<NodeRef<marker::Mut<'a>, K, V, marker::Internal>, marker::Edge> {
}
impl Handle {
2017-06-12 06:01:41 +02:00
pub fn merge(
a: Abcd,
) -> Handle<NodeRef<marker::Mut<'a>, K, V, marker::Internal>, marker::Edge> {
}
}
2017-11-01 07:33:55 +01:00
// Long function without return type that should not be reformatted.
fn veeeeeeeeeeeeeeeeeeeeery_long_name(a: FirstTypeeeeeeeeee, b: SecondTypeeeeeeeeeeeeeeeeeeeeeee) {}
2017-05-25 15:55:33 +02:00
fn veeeeeeeeeeeeeeeeeeeeeery_long_name(a: FirstTypeeeeeeeeee, b: SecondTypeeeeeeeeeeeeeeeeeeeeeee) {
}
2017-06-12 06:01:41 +02:00
fn veeeeeeeeeeeeeeeeeeeeeeery_long_name(
a: FirstTypeeeeeeeeee,
b: SecondTypeeeeeeeeeeeeeeeeeeeeeee,
) {
}