]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/issue-31924-non-snake-ffi.rs
Merge commit '2bb3996244cf1b89878da9e39841e9f6bf061602' into sync_cg_clif-2022-12-14
[rust.git] / src / test / 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() {}