mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
11 lines
355 B
Rust
11 lines
355 B
Rust
fn make<N: u32>() {}
|
|
//~^ ERROR expected trait, found builtin type `u32`
|
|
//~| HELP you might have meant to write a const parameter here
|
|
|
|
struct Array<N: usize>([bool; N]);
|
|
//~^ ERROR expected trait, found builtin type `usize`
|
|
//~| HELP you might have meant to write a const parameter here
|
|
//~| ERROR expected value, found type parameter `N`
|
|
|
|
fn main() {}
|