rust/tests/ui/specialization/min_specialization/bad-const-wf-doesnt-specialize.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
322 B
Rust
Raw Normal View History

#![feature(min_specialization)]
// An impl that has an erroneous const substitution should not specialize one
// that is well-formed.
struct S<const L: usize>;
impl<const N: i32> Copy for S<N> {}
impl<const M: usize> Copy for S<M> {}
//~^ ERROR conflicting implementations of trait `Copy` for type `S<_>`
fn main() {}