mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 02:40:45 +00:00
13 lines
339 B
Rust
13 lines
339 B
Rust
#![feature(min_specialization)]
|
|
|
|
// An impl that has an erroneous const substitution should not specialize one
|
|
// that is well-formed.
|
|
#[derive(Clone)]
|
|
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() {}
|