summary refs log tree commit diff
path: root/tests/ui/resolve/change-ty-to-const-param-sugg-0.rs
blob: 36fe16f64ebeb56629b49d7580014b1a808a21b5 (plain)
1
2
3
4
5
6
7
8
9
10
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() {}