Fix typo
This commit is contained in:
parent
2b2eff15cd
commit
59b03b16b9
2 changed files with 2 additions and 2 deletions
|
@ -385,7 +385,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
|
|||
if static_sources.len() == 1 {
|
||||
if let Some(expr) = rcvr_expr {
|
||||
err.span_suggestion(expr.span.to(span),
|
||||
"use associated function syntax intead",
|
||||
"use associated function syntax instead",
|
||||
format!("{}::{}",
|
||||
self.ty_to_string(actual),
|
||||
item_name));
|
||||
|
|
|
@ -39,7 +39,7 @@ LL | u.f8(42) + u.f9(342) + m.fff(42)
|
|||
| --^^^
|
||||
| | |
|
||||
| | this is an associated function, not a method
|
||||
| help: use associated function syntax intead: `Myisize::fff`
|
||||
| help: use associated function syntax instead: `Myisize::fff`
|
||||
|
|
||||
= note: found the following associated functions; to be used as methods, functions must have a `self` parameter
|
||||
note: the candidate is defined in an impl for the type `Myisize`
|
||||
|
|
Loading…
Add table
Reference in a new issue