Skip to content

Commit 8a961a5

Browse files
committed
remove const_fn from some error_code descriptions
1 parent 75bab07 commit 8a961a5

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

compiler/rustc_error_codes/src/error_codes/E0379.md

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ A trait method was declared const.
33
Erroneous code example:
44

55
```compile_fail,E0379
6-
#![feature(const_fn)]
7-
86
trait Foo {
97
const fn bar() -> u32; // error!
108
}

compiler/rustc_error_codes/src/error_codes/E0764.md

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ A mutable reference was used in a constant.
33
Erroneous code example:
44

55
```compile_fail,E0764
6-
#![feature(const_fn)]
76
#![feature(const_mut_refs)]
87
98
fn main() {
@@ -27,7 +26,6 @@ Remember: you cannot use a function call inside a constant or static. However,
2726
you can totally use it in constant functions:
2827

2928
```
30-
#![feature(const_fn)]
3129
#![feature(const_mut_refs)]
3230
3331
const fn foo(x: usize) -> usize {

0 commit comments

Comments
 (0)