blob: 93c1dbf44e93839b87ec0a1416766d0df79aa5a4 (
plain)
1
2
3
4
5
6
7
8
9
|
// revisions:cfail1
struct S<T, const N: usize>([T; N]);
fn f<T, const N: usize>(x: T) -> S<T, {N}> { panic!() }
fn main() {
f(0u8);
//[cfail1]~^ ERROR type annotations needed
}
|