]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/warn-ctypes-inhibit.rs
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / warn-ctypes-inhibit.rs
1 // run-pass
2
3 #![allow(dead_code)]
4 // compile-flags:-D improper-ctypes
5
6 // pretty-expanded FIXME #23616
7 #![allow(improper_ctypes)]
8
9 mod libc {
10     extern "C" {
11         pub fn malloc(size: isize) -> *const u8;
12     }
13 }
14
15 pub fn main() {}