We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
const extern fn
1 parent 3c7be7c commit 666b332Copy full SHA for 666b332
tests/const_fn.rs
@@ -0,0 +1,3 @@
1
+#[cfg(target_os = "linux")]
2
+const _FOO: libc::c_uint = unsafe { libc::CMSG_SPACE(1) };
3
+//^ if CMSG_SPACE is not const, this will fail to compile
0 commit comments