☰
Debian Codegraph
@
1.4.4-1
/
/
.cargo
/
vendor
/
libc
/
tests
/
const_fn.rs
☽
☼
.cargo/vendor/libc/tests/const_fn.rs
code
plain
raw
Apache-2.0-Expat
2010, The Rust Project Developers; 2014, The Rust Project Developers; 2014-2020, The Rust Project Developers; 2015, The Rust Project Developers; 2016, The Rust Project Developers
debian/copyright
1
#![cfg(libc_const_extern_fn)] // If this does not hold, the file is empty
2
3
#[cfg(target_os = "linux")]
4
const _FOO: libc::c_uint = unsafe { libc::CMSG_SPACE(1) };
5
//^ if CMSG_SPACE is not const, this will fail to compile