Skip to content

Commit 1aee7d5

Browse files
author
Nick Hamann
committed
---
yaml --- r: 209220 b: refs/heads/master c: 3640354 h: refs/heads/master v: v3
1 parent fd4addf commit 1aee7d5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 7e78e708fb3f5115b47cc1c0b32c77a381519ecc
2+
refs/heads/master: 364035497c2bf882cd46a33e0cd6bf4e64370ea4
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
55
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f

trunk/src/librustc/diagnostics.rs

Lines changed: 3 additions & 3 deletions
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)