mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Add a test for #2922
This commit is contained in:
parent
ec6086b802
commit
430f848c75
9
tests/source/issue-2922.rs
Normal file
9
tests/source/issue-2922.rs
Normal file
@ -0,0 +1,9 @@
|
||||
// rustfmt-indent_style: Visual
|
||||
struct Functions {
|
||||
RunListenServer: unsafe extern "C" fn(*mut c_void,
|
||||
*mut c_char,
|
||||
*mut c_char,
|
||||
*mut c_char,
|
||||
*mut c_void,
|
||||
*mut c_void) -> c_int,
|
||||
}
|
10
tests/target/issue-2922.rs
Normal file
10
tests/target/issue-2922.rs
Normal file
@ -0,0 +1,10 @@
|
||||
// rustfmt-indent_style: Visual
|
||||
struct Functions {
|
||||
RunListenServer: unsafe extern "C" fn(*mut c_void,
|
||||
*mut c_char,
|
||||
*mut c_char,
|
||||
*mut c_char,
|
||||
*mut c_void,
|
||||
*mut c_void)
|
||||
-> c_int,
|
||||
}
|
Loading…
Reference in New Issue
Block a user