Skip to content

Commit 123b7dd

Browse files
Add long explanation for E0018
1 parent b7fb575 commit 123b7dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/librustc/diagnostics.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ reference when using guards or refactor the entire expression, perhaps by
112112
putting the condition inside the body of the arm.
113113
"##,
114114

115+
E0018: r##"
116+
The value of static and const variables must be known at compile time, which is
117+
not possible with a pointer or with a value pointed by a pointer.
118+
"##,
119+
115120
E0152: r##"
116121
Lang items are already implemented in the standard library. Unless you are
117122
writing a free-standing application (e.g. a kernel), you do not need to provide
@@ -317,7 +322,6 @@ register_diagnostics! {
317322
E0015,
318323
E0016,
319324
E0017,
320-
E0018,
321325
E0019,
322326
E0020,
323327
E0022,

0 commit comments

Comments
 (0)