Clearer error message for external trait and type
The old error message implied that external traits could never be implemented locally.
This commit is contained in:
parent
c5c980ac2a
commit
8154d23e44
@ -216,8 +216,8 @@ impl visit::Visitor<()> for PrivilegedScopeVisitor {
|
||||
if trait_def_id.crate != LOCAL_CRATE {
|
||||
let session = self.cc.crate_context.tcx.sess;
|
||||
session.span_err(item.span,
|
||||
"cannot provide an extension implementation \
|
||||
for a trait not defined in this crate");
|
||||
"cannot provide an extension implementation \
|
||||
where both trait and type are not defined in this crate");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user