mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
16 lines
266 B
Rust
16 lines
266 B
Rust
// check-pass
|
|
|
|
#![deny(non_snake_case)]
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn SparklingGenerationForeignFunctionInterface() {} // OK
|
|
|
|
pub struct Foo;
|
|
|
|
impl Foo {
|
|
#[no_mangle]
|
|
pub extern "C" fn SparklingGenerationForeignFunctionInterface() {} // OK
|
|
}
|
|
|
|
fn main() {}
|