Skip to content

Commit 3640354

Browse files
author
Nick Hamann
committed
Revise E0015 according to feedback.
1 parent 7e78e70 commit 3640354

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/diagnostics.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ const Y: i32 = A;
196196
"##,
197197

198198
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.
199+
The only functions that can be called in static or constant expressions are
200+
`const` functions. Rust currently does not support more general compile-time
201+
function execution.
202202
203203
See [RFC 911] for more details on the design of `const fn`s.
204204

0 commit comments

Comments
 (0)