blob: 735549defeaf07f9e5c35accf60917803098b000 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// revisions: full min
#![cfg_attr(full, feature(const_generics))]
#![feature(const_generics_defaults)]
#![allow(incomplete_features)]
struct Foo<const N: usize>;
impl<const N: usize = 1> Foo<N> {}
//~^ ERROR defaults for const parameters are only allowed
fn main() {}
|