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.
33Erroneous code example:
44
55``` compile_fail,E0282
6- let x = "hello".chars().rev().collect() ;
6+ let x = None ;
77```
88
99This 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 {
182182
183183pub enum TypeAnnotationNeeded {
184184 /// ```compile_fail,E0282
185- /// let x = "hello".chars().rev().collect() ;
185+ /// let _ = None ;
186186 /// ```
187187 E0282 ,
188188 /// An implementation cannot be chosen unambiguously because of lack of information.
You can’t perform that action at this time.
0 commit comments