2017-01-16 14:50:27 +13:00
|
|
|
// rustfmt-normalize_comments: true
|
2015-09-21 20:02:45 +02:00
|
|
|
|
2017-07-25 19:46:09 +02:00
|
|
|
extern crate foo ;
|
|
|
|
extern crate foo as bar ;
|
|
|
|
|
2017-08-09 00:16:35 +09:00
|
|
|
extern crate futures;
|
|
|
|
extern crate dotenv;
|
|
|
|
extern crate chrono;
|
|
|
|
|
|
|
|
extern crate foo;
|
|
|
|
extern crate bar;
|
|
|
|
|
2018-01-04 10:15:13 +09:00
|
|
|
// #2315
|
|
|
|
extern crate proc_macro2;
|
|
|
|
extern crate proc_macro;
|
|
|
|
|
2018-11-15 21:37:42 +13:00
|
|
|
// #3128
|
|
|
|
extern crate serde; // 1.0.78
|
|
|
|
extern crate serde_derive; // 1.0.78
|
|
|
|
extern crate serde_json; // 1.0.27
|
|
|
|
|
2015-09-21 20:02:45 +02:00
|
|
|
extern "C" {
|
|
|
|
fn c_func(x: *mut *mut libc::c_void);
|
|
|
|
|
|
|
|
fn c_func(x: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, y: YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY);
|
|
|
|
|
|
|
|
#[test123]
|
|
|
|
fn foo() -> uint64_t;
|
|
|
|
|
|
|
|
pub fn bar() ;
|
|
|
|
}
|
|
|
|
|
|
|
|
extern {
|
|
|
|
fn DMR_GetDevice(pHDev: *mut HDEV, searchMode: DeviceSearchMode, pSearchString: *const c_char, devNr: c_uint, wildcard: c_char) -> TDMR_ERROR;
|
|
|
|
|
|
|
|
fn quux() -> (); // Post comment
|
2017-09-05 02:22:17 +01:00
|
|
|
|
|
|
|
pub type
|
|
|
|
Foo;
|
|
|
|
|
|
|
|
type Bar;
|
2015-09-21 20:02:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
extern "Rust" { static ext: u32;
|
|
|
|
// Some comment.
|
|
|
|
pub static mut var : SomeType ; }
|
2015-10-10 22:53:20 +02:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
fn syscall(number: libc::c_long /* comment 1 */, /* comm 2 */ ... /* sup? */) -> libc::c_long;
|
|
|
|
|
|
|
|
fn foo (x: *const c_char , ... ) ->
|
|
|
|
libc::c_long;
|
|
|
|
}
|
2015-10-16 22:05:44 +02:00
|
|
|
|
|
|
|
extern {
|
|
|
|
pub fn freopen(filename: *const c_char, mode: *const c_char
|
|
|
|
, mode2: *const c_char
|
|
|
|
, mode3: *const c_char,
|
|
|
|
file: *mut FILE)
|
|
|
|
-> *mut FILE;
|
2020-06-30 11:34:05 +09:00
|
|
|
|
|
|
|
|
|
|
|
const fn foo(
|
|
|
|
|
|
|
|
) ->
|
|
|
|
*mut Bar;
|
|
|
|
unsafe fn foo(
|
|
|
|
|
|
|
|
) -> *
|
|
|
|
mut
|
|
|
|
Bar;
|
|
|
|
|
|
|
|
pub(super) const fn foo() -> *mut Bar;
|
|
|
|
pub(crate) unsafe fn foo() -> *mut Bar;
|
2015-10-16 22:05:44 +02:00
|
|
|
}
|
2016-03-14 18:55:55 +13:00
|
|
|
|
|
|
|
extern {
|
|
|
|
|
|
|
|
}
|