We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5c980a + 8154d23 commit a623fd3Copy full SHA for a623fd3
src/librustc/middle/typeck/coherence.rs
@@ -216,8 +216,8 @@ impl visit::Visitor<()> for PrivilegedScopeVisitor {
216
if trait_def_id.crate != LOCAL_CRATE {
217
let session = self.cc.crate_context.tcx.sess;
218
session.span_err(item.span,
219
- "cannot provide an extension implementation \
220
- for a trait not defined in this crate");
+ "cannot provide an extension implementation \
+ where both trait and type are not defined in this crate");
221
}
222
223
0 commit comments