Skip to content

Commit

Permalink
Stabilize unsafe extern blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Jul 18, 2024
1 parent 5454de3 commit 0e043ba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/rust-2024/unsafe-extern.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ Rust 1.xx <!--TODO--> added the ability in all editions to mark [`extern` blocks
The syntax for an unsafe `extern` block looks like this:

```rust
# #![feature(unsafe_extern_blocks)]

unsafe extern "C" {
// sqrt (from libm) may be called with any `f64`
pub safe fn sqrt(x: f64) -> f64;
Expand Down

0 comments on commit 0e043ba

Please sign in to comment.