Skip to content

Commit 91846fe

Browse files
committed
This test now works
1 parent 61a05ef commit 91846fe

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

compiler/rustc_trait_selection/src/traits/coherence.rs

+1
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ fn negative_impl_exists<'cx, 'tcx>(
366366
return true;
367367
}
368368

369+
// FIXME we should implement an `assemble_neg_candidates` fn
369370
for o in util::elaborate_predicates(infcx.tcx, iter::once(o.predicate)) {
370371
if resolve_negative_obligation(infcx, param_env, region_context, &o) {
371372
return true;

src/test/ui/coherence/coherence-overlap-negate-alias-strict.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// check-pass
2+
13
#![feature(negative_impls)]
24
#![feature(rustc_attrs)]
35
#![feature(trait_alias)]
@@ -13,7 +15,5 @@ impl !A for u32 {}
1315
trait C {}
1416
impl<T: AB> C for T {}
1517
impl C for u32 {}
16-
//~^ ERROR: conflicting implementations of trait `C` for type `u32` [E0119]
17-
// FIXME this should work, we should implement an `assemble_neg_candidates` fn
1818

1919
fn main() {}

src/test/ui/coherence/coherence-overlap-negate-alias-strict.stderr

-11
This file was deleted.

0 commit comments

Comments
 (0)