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.
strlen
1 parent 0d7a481 commit 0e3b44eCopy full SHA for 0e3b44e
2 files changed
compiler/rustc_error_codes/src/error_codes/E0755.md
@@ -20,7 +20,7 @@ side effects or infinite loops:
20
21
extern "C" {
22
#[unsafe(ffi_pure)] // ok!
23
- pub fn strlen(s: *const i8) -> isize;
+ pub fn strlen(s: *const std::ffi::c_char) -> usize;
24
}
25
# fn main() {}
26
```
compiler/rustc_error_codes/src/error_codes/E0756.md
@@ -21,7 +21,7 @@ which have no side effects except for their return value:
#[unsafe(ffi_const)] // ok!
- pub fn strlen(s: *const i8) -> i32;
27
0 commit comments