diff options
Diffstat (limited to 'src/test/compile-fail/coherence-impl-trait-for-trait-object-safe.rs')
| -rw-r--r-- | src/test/compile-fail/coherence-impl-trait-for-trait-object-safe.rs | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/src/test/compile-fail/coherence-impl-trait-for-trait-object-safe.rs b/src/test/compile-fail/coherence-impl-trait-for-trait-object-safe.rs index b08e4bad1e9..8bb9556fcc0 100644 --- a/src/test/compile-fail/coherence-impl-trait-for-trait-object-safe.rs +++ b/src/test/compile-fail/coherence-impl-trait-for-trait-object-safe.rs @@ -13,9 +13,7 @@ // If the trait is not object-safe, we give a more tailored message // because we're such schnuckels: -trait NotObjectSafe { fn eq(&self, other: &Self); } -impl NotObjectSafe for NotObjectSafe { //~ ERROR E0372 - fn eq(&self, other: &Self) { panic!(); } -} +trait NotObjectSafe { fn eq(&self, other: Self); } +impl NotObjectSafe for NotObjectSafe { } //~ ERROR E0038 fn main() { } | 
