blob: 5fd7c647c253111888d7059dfe31f9c626f26fe0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#![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> {}
//~^ ERROR the constant `N` is not of type `usize`
impl<const M: usize> Copy for S<M> {}
fn main() {}
|