Skip to content

Commit a2d796b

Browse files
committed
Fix doctest
1 parent b0204c2 commit a2d796b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/doc/unstable-book/src/language-features/intrinsics.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ some features that only exist on some backends. Backends can simply not implemen
1616
intrinsics without causing any code miscompilations or failures to compile.
1717

1818
```rust
19-
#![feature(rustc_attrs)]
19+
#![feature(rustc_attrs, effects)]
2020
#![allow(internal_features)]
2121

2222
#[rustc_intrinsic]
23-
fn some_intrinsic_name() -> u32 {
24-
42
25-
}
23+
const unsafe fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize) {}
2624
```
2725

2826
## Intrinsics lowered to MIR instructions

0 commit comments

Comments
 (0)