summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-10-13 13:19:40 +0900
committerYuki Okushi <huyuumi.dev@gmail.com>2019-10-13 13:19:40 +0900
commitc6cc29d8cfa0e2c18cd01861df542e7772ae26a6 (patch)
treef8779fb253303eda06774ab243ee14897e6cd13f
parente0ef7767cab847f73e145d3f2eb99aef02c94067 (diff)
downloadrust-c6cc29d8cfa0e2c18cd01861df542e7772ae26a6.tar.gz
Apply suggestion
-rw-r--r--src/librustc/error_codes.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librustc/error_codes.rs b/src/librustc/error_codes.rs
index a4c1afc4f1d..78aa9e79e10 100644
--- a/src/librustc/error_codes.rs
+++ b/src/librustc/error_codes.rs
@@ -2012,11 +2012,11 @@ fn main() {
}
```
-Closures cannot be used as `static`. They "save" the environment.
-Therefore, having a static closure with a static environment doesn't
-really make sense since all you can capture inside it would be variables
-with static lifetime. In this condition, better use a function directly.
-The easiest fix is to remove `static` keyword.
+Closures cannot be used as `static`. They "save" the environment,
+and as such a static closure would save only a static environment
+which would consist only of variables with a static lifetime. Given
+this it would be better to use a proper function. The easiest fix
+is to remove the `static` keyword.
"##,
E0698: r##"