mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-24 21:53:56 +00:00
const fn no longer comming soon on const docs
This commit is contained in:
parent
2442823ef5
commit
3fb42cfb7c
@ -47,8 +47,8 @@ mod as_keyword { }
|
||||
///
|
||||
/// Constants must be explicitly typed, unlike with `let` you can't ignore its type and let the
|
||||
/// compiler figure it out. Any constant value can be defined in a const, which in practice happens
|
||||
/// to be most things that would be reasonable to have a constant (barring `const fn`s, coming
|
||||
/// soon). For example, you can't have a File as a `const`.
|
||||
/// to be most things that would be reasonable to have a constant (barring `const fn`s). For
|
||||
/// example, you can't have a File as a `const`.
|
||||
///
|
||||
/// The only lifetime allowed in a constant is `'static`, which is the lifetime that encompasses
|
||||
/// all others in a Rust program. For example, if you wanted to define a constant string, it would
|
||||
|
Loading…
Reference in New Issue
Block a user