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(
310310 } ;
311311
312312 if let Some ( overlap) = overlap {
313+ debug ! ( "found conflicting implementations {:?}" , overlap) ;
314+
313315 let msg = format ! ( "conflicting implementations of trait `{}`{}:{}" ,
314316 overlap. trait_desc,
315317 overlap. self_desc. clone( ) . map_or(
Original file line number Diff line number Diff line change 44
55#![ feature( rustc_attrs) ]
66
7- trait MyTrait { }
7+ pub trait MyTrait { }
88#[ rustc_reservation_impl="this impl is reserved" ]
99impl MyTrait for ( ) { }
1010
11- trait OtherTrait { }
11+ pub trait OtherTrait { }
1212impl OtherTrait for ( ) { }
1313impl < T : MyTrait > OtherTrait for T { }
1414//~^ ERROR conflicting implementations
You can’t perform that action at this time.
0 commit comments