span_note => fileline_note
This commit is contained in:
parent
0a52494f7e
commit
59fafcf00c
@ -1989,7 +1989,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
||||
|
||||
// If it's a typedef, give a note
|
||||
if let Def::TyAlias(..) = path_res.base_def {
|
||||
err.span_note(trait_path.span,
|
||||
err.fileline_note(trait_path.span,
|
||||
"`type` aliases cannot be used for traits");
|
||||
}
|
||||
err.emit();
|
||||
|
Loading…
Reference in New Issue
Block a user