rust/tests/ui/lint/issue-31924-non-snake-ffi.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
266 B
Rust
Raw Normal View History

2019-06-12 15:18:32 +00:00
// check-pass
#![deny(non_snake_case)]
2019-06-12 15:18:32 +00:00
#[no_mangle]
pub extern "C" fn SparklingGenerationForeignFunctionInterface() {} // OK
pub struct Foo;
impl Foo {
#[no_mangle]
pub extern "C" fn SparklingGenerationForeignFunctionInterface() {} // OK
}
fn main() {}