]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/issue-31924-non-snake-ffi.rs
Rollup merge of #106935 - TaKO8Ki:fix-104440, r=cjgillot
[rust.git] / tests / ui / lint / issue-31924-non-snake-ffi.rs
1 // check-pass
2
3 #![deny(non_snake_case)]
4
5 #[no_mangle]
6 pub extern "C" fn SparklingGenerationForeignFunctionInterface() {} // OK
7
8 pub struct Foo;
9
10 impl Foo {
11     #[no_mangle]
12     pub extern "C" fn SparklingGenerationForeignFunctionInterface() {} // OK
13 }
14
15 fn main() {}