We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5019791 commit caab16fCopy full SHA for caab16f
src/doc/unstable-book/src/language-features/const-fn.md
@@ -6,24 +6,5 @@ The tracking issue for this feature is: [#57563]
6
7
------------------------
8
9
-The `const_fn` feature allows marking free functions and inherent methods as
10
-`const`, enabling them to be called in constants contexts, with constant
11
-arguments.
12
-
13
-## Examples
14
15
-```rust
16
-#![feature(const_fn)]
17
18
-const fn double(x: i32) -> i32 {
19
- x * 2
20
-}
21
22
-const FIVE: i32 = 5;
23
-const TEN: i32 = double(FIVE);
24
25
-fn main() {
26
- assert_eq!(5, FIVE);
27
- assert_eq!(10, TEN);
28
29
-```
+The `const_fn` feature enables additional functionality not stabilized in the
+[minimal subset of `const_fn`](https://github.com/rust-lang/rust/issues/53555)
0 commit comments