Closed
Description
This also applies to proc macros
https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/.60SpecOptionPartialEq.60.20error
#![allow(internal_features)]
#![feature(allow_internal_unstable)]
#[allow_internal_unstable(min_specialization)]
macro_rules! test {
() => {
struct T<U>(U);
trait Tr {}
impl<U> Tr for T<U> {}
impl Tr for T<u8> {}
}
}
test! {}
Compiling playground v0.0.1 (/playground)
error[E0119]: conflicting implementations of trait `Tr` for type `T<u8>`
--> src/lib.rs:10:9
|
9 | impl<U> Tr for T<U> {}
| ------------------- first implementation here
10 | impl Tr for T<u8> {}
| ^^^^^^^^^^^^^^^^^ conflicting implementation for `T<u8>`
...
14 | test! {}
| -------- in this macro invocation```