Skip to content

Commit

Permalink
remove an error for type params
Browse files Browse the repository at this point in the history
  • Loading branch information
TaKO8Ki committed Apr 22, 2022
1 parent 547cb27 commit f5a8ee4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion compiler/rustc_typeck/src/coherence/orphan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};
Expand Down

0 comments on commit f5a8ee4

Please sign in to comment.