Skip to content

Commit 3434062

Browse files
Add long explanation for E0018
1 parent b7fb575 commit 3434062

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/librustc/diagnostics.rs

Lines changed: 5 additions & 0 deletions
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

0 commit comments

Comments
 (0)