summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/auxiliary/coherence_cross_crate_trait_decl.rs
blob: 712ed55438e68c397fbb1f7db323465558169206 (plain)
1
2
3
4
5
6
7
8
9
pub trait SomeTrait {}

impl SomeTrait for () {}

// Adding this `impl` would cause errors in this crate's dependent,
// so it would be a breaking change. We explicitly don't add this impl,
// as the dependent crate already assumes this impl exists and thus already
// does not compile.
//impl SomeTrait for i32 {}