blob: 20dd0b906ce3ccb926665d8444c4c380a8a4aec5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#[lang = "sized"]
trait Sized {}
struct Foo<T, const N: usize> {
value: [T; N],
}
fn main() {
let foo: Foo<_, _>;
// { dg-error {type provided when a constant was expected .E0747.} "" { target *-*-* } .-1 }
}
|