Skip to content

Commit

Permalink
remove const_fn from some error_code descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Apr 25, 2021
1 parent 75bab07 commit 8a961a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions compiler/rustc_error_codes/src/error_codes/E0379.md
Expand Up @@ -3,8 +3,6 @@ A trait method was declared const.
Erroneous code example:

```compile_fail,E0379
#![feature(const_fn)]
trait Foo {
const fn bar() -> u32; // error!
}
Expand Down
2 changes: 0 additions & 2 deletions compiler/rustc_error_codes/src/error_codes/E0764.md
Expand Up @@ -3,7 +3,6 @@ A mutable reference was used in a constant.
Erroneous code example:

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

```
#![feature(const_fn)]
#![feature(const_mut_refs)]
const fn foo(x: usize) -> usize {
Expand Down

0 comments on commit 8a961a5

Please sign in to comment.