File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
librustc/traits/specialize
test/ui/traits/reservation-impls Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,8 @@ pub(super) fn specialization_graph_provider(
310
310
} ;
311
311
312
312
if let Some ( overlap) = overlap {
313
+ debug ! ( "found conflicting implementations {:?}" , overlap) ;
314
+
313
315
let msg = format ! ( "conflicting implementations of trait `{}`{}:{}" ,
314
316
overlap. trait_desc,
315
317
overlap. self_desc. clone( ) . map_or(
Original file line number Diff line number Diff line change 4
4
5
5
#![ feature( rustc_attrs) ]
6
6
7
- trait MyTrait { }
7
+ pub trait MyTrait { }
8
8
#[ rustc_reservation_impl="this impl is reserved" ]
9
9
impl MyTrait for ( ) { }
10
10
11
- trait OtherTrait { }
11
+ pub trait OtherTrait { }
12
12
impl OtherTrait for ( ) { }
13
13
impl < T : MyTrait > OtherTrait for T { }
14
14
//~^ ERROR conflicting implementations
You can’t perform that action at this time.
0 commit comments