diff options
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/coherence.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/coherence.rs b/compiler/rustc_trait_selection/src/traits/coherence.rs index afe86b2a231..82ae4c72773 100644 --- a/compiler/rustc_trait_selection/src/traits/coherence.rs +++ b/compiler/rustc_trait_selection/src/traits/coherence.rs @@ -87,7 +87,7 @@ where if let (Some(t1), Some(t2)) = (t1, t2) { // Simplified successfully // Types cannot unify if they differ in their reference mutability or simplify to different types - ty1.ref_mutability() != ty2.ref_mutability() || t1 != t2 + t1 != t2 || ty1.ref_mutability() != ty2.ref_mutability() } else { // Types might unify false |
