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 e0c4e5b commit 0304ed5Copy full SHA for 0304ed5
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