mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
remove an error for type params
This commit is contained in:
parent
547cb2722b
commit
f5a8ee4dd8
@ -211,7 +211,6 @@ fn emit_orphan_check_error<'tcx>(
|
||||
traits::OrphanCheckErr::NonLocalInputType(tys) => {
|
||||
let msg = match self_ty.kind() {
|
||||
ty::Adt(..) => "can be implemented for types defined outside of the crate",
|
||||
ty::Param(_) => "can have blanket implementations defined in this trait",
|
||||
_ if self_ty.is_primitive() => "can be implemented for primitive types",
|
||||
_ => "can be implemented for arbitrary types",
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user