mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
remove const_fn from some error_code descriptions
This commit is contained in:
parent
75bab0782a
commit
8a961a5b33
@ -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!
|
||||
}
|
||||
|
@ -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() {
|
||||
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user