File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
rustc_error_codes/src/error_codes
rustc_infer/src/infer/error_reporting Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ The compiler could not infer a type and asked for a type annotation.
3
3
Erroneous code example:
4
4
5
5
``` compile_fail,E0282
6
- let x = "hello".chars().rev().collect() ;
6
+ let x = None ;
7
7
```
8
8
9
9
This error indicates that type inference did not result in one unique possible
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ fn closure_args(fn_sig: &ty::PolyFnSig<'_>) -> String {
182
182
183
183
pub enum TypeAnnotationNeeded {
184
184
/// ```compile_fail,E0282
185
- /// let x = "hello".chars().rev().collect() ;
185
+ /// let _ = None ;
186
186
/// ```
187
187
E0282 ,
188
188
/// An implementation cannot be chosen unambiguously because of lack of information.
You can’t perform that action at this time.
0 commit comments