We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e78e70 commit 3640354Copy full SHA for 3640354
src/librustc/diagnostics.rs
@@ -196,9 +196,9 @@ const Y: i32 = A;
196
"##,
197
198
E0015: r##"
199
-The only function calls allowed in static or constant expressions are
200
-constructors for enum variants and structs, or `const fn`s. Rust currently does
201
-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.
202
203
See [RFC 911] for more details on the design of `const fn`s.
204
0 commit comments