1 The `ffi_const` attribute was used on something other than a foreign function
4 Erroneous code example:
14 The `ffi_const` attribute can only be used on foreign function declarations
15 which have no side effects except for their return value:
18 #![feature(ffi_const)]
22 pub fn strlen(s: *const i8) -> i32;
27 You can get more information about it in the [unstable Rust Book].
29 [unstable Rust Book]: https://doc.rust-lang.org/nightly/unstable-book/language-features/ffi-const.html