]> git.lizzy.rs Git - rust.git/commitdiff
Update diagnostics.rs
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Mon, 1 Jun 2015 10:33:41 +0000 (12:33 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Mon, 1 Jun 2015 10:33:41 +0000 (12:33 +0200)
src/librustc/diagnostics.rs

index e10349765899e85106c2165dbb8898b6c2fac9a1..5e79e5a5a4ed2edf6b1a7623d4ab8bc5b9faf75a 100644 (file)
@@ -177,9 +177,9 @@ struct X { x: (), }
 "##,
 
 E0011: r##"
-Using a user-defined operator on const/static variable is restricted to what
-can be evaluated at compile-time. Using an user-defined operator could call a
-user-defined function, which is not allowed.
+Initializers for constants and statics are evaluated at compile time.
+User-defined operators rely on user-defined functions, which cannot be evaluated
+at compile time.
 
 Bad example: