Revise E0015 according to feedback.
This commit is contained in:
parent
7e78e708fb
commit
364035497c
@ -196,9 +196,9 @@ const Y: i32 = A;
|
||||
"##,
|
||||
|
||||
E0015: r##"
|
||||
The only function calls allowed in static or constant expressions are
|
||||
constructors for enum variants and structs, or `const fn`s. Rust currently does
|
||||
not support more general compile-time function execution.
|
||||
The only functions that can be called in static or constant expressions are
|
||||
`const` functions. Rust currently does not support more general compile-time
|
||||
function execution.
|
||||
|
||||
See [RFC 911] for more details on the design of `const fn`s.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user