Skip to content

Commit 2f84173

Browse files
Add E0103 error explanation
1 parent e859498 commit 2f84173

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,15 @@ fn main() {
12781278
```
12791279
"##,
12801280

1281+
E0103: r##"
1282+
You hit this error because the compiler the compiler lacks information
1283+
to determine a type for this pattern binding.
1284+
1285+
You have two possibilities to solve this situation:
1286+
* Give an explicit definition of the expression
1287+
* Infer the expression
1288+
"##,
1289+
12811290
E0106: r##"
12821291
This error indicates that a lifetime is missing from a type. If it is an error
12831292
inside a function signature, the problem may be with failing to adhere to the
@@ -2701,7 +2710,6 @@ register_diagnostics! {
27012710
E0085,
27022711
E0086,
27032712
E0090,
2704-
E0103,
27052713
E0104,
27062714
E0118,
27072715
E0122,

0 commit comments

Comments
 (0)