]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/issue-31924-non-snake-ffi.rs
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[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() {}