mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 12:37:37 +00:00
10 lines
188 B
Rust
10 lines
188 B
Rust
![]() |
// 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
|
||
|
}
|