We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 595c2e6 commit 4e437d6Copy full SHA for 4e437d6
src/librustc/traits/specialize/mod.rs
@@ -310,6 +310,8 @@ pub(super) fn specialization_graph_provider(
310
};
311
312
if let Some(overlap) = overlap {
313
+ debug!("found conflicting implementations {:?}", overlap);
314
+
315
let msg = format!("conflicting implementations of trait `{}`{}:{}",
316
overlap.trait_desc,
317
overlap.self_desc.clone().map_or(
src/test/ui/traits/reservation-impls/reservation-impl-coherence-conflict.rs
@@ -4,11 +4,11 @@
4
5
#![feature(rustc_attrs)]
6
7
-trait MyTrait {}
+pub trait MyTrait {}
8
#[rustc_reservation_impl="this impl is reserved"]
9
impl MyTrait for () {}
10
11
-trait OtherTrait {}
+pub trait OtherTrait {}
12
impl OtherTrait for () {}
13
impl<T: MyTrait> OtherTrait for T {}
14
//~^ ERROR conflicting implementations
0 commit comments