about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2015-08-07 23:51:22 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2015-08-15 12:21:35 +0200
commit2f84173f2c359041d364579d17a1adc8c6569a44 (patch)
tree8a4c5c62c970aa13cb0a29752cd2fe39055db261
parente859498d1ca45f2719542f505eb0ba8b944e5668 (diff)
Add E0103 error explanation
-rw-r--r--src/librustc_typeck/diagnostics.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs
index c24c9e9a255..2f10245bd26 100644
--- a/src/librustc_typeck/diagnostics.rs
+++ b/src/librustc_typeck/diagnostics.rs
@@ -1278,6 +1278,15 @@ fn main() {
 ```
 "##,
 
+E0103: r##"
+You hit this error because the compiler the compiler lacks information
+to determine a type for this pattern binding.
+
+You have two possibilities to solve this situation:
+ * Give an explicit definition of the expression
+ * Infer the expression
+"##,
+
 E0106: r##"
 This error indicates that a lifetime is missing from a type. If it is an error
 inside a function signature, the problem may be with failing to adhere to the
@@ -2701,7 +2710,6 @@ register_diagnostics! {
     E0085,
     E0086,
     E0090,
-    E0103,
     E0104,
     E0118,
     E0122,