rust/tests/ui/lint/issue-31924-non-snake-ffi.rs
2023-01-11 09:32:08 +00:00

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() {}