Show suggestion for <SelfTy as Trait>::assoc_fn
in more cases and fmt code
This commit is contained in:
parent
91b9ffeab0
commit
7313c10774
3 changed files with 53 additions and 20 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue