1
Fork 0

Show suggestion for <SelfTy as Trait>::assoc_fn in more cases and fmt code

This commit is contained in:
Esteban Küber 2023-08-14 13:26:11 +00:00
parent 91b9ffeab0
commit 7313c10774
3 changed files with 53 additions and 20 deletions

View file

@ -27,7 +27,7 @@ use std::iter;
pub enum TypeAnnotationNeeded {
/// ```compile_fail,E0282
/// let x = "hello".chars().rev().collect();
/// let x;
/// ```
E0282,
/// An implementation cannot be chosen unambiguously because of lack of information.