]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/suggest_const_for_array.rs
Rollup merge of #106113 - krasimirgg:llvm-16-ext-tyid, r=nikic
[rust.git] / tests / ui / const-generics / suggest_const_for_array.rs
1 #![crate_type = "lib"]
2
3 fn example<const N: usize>() {}
4
5 fn other() {
6   example::<[usize; 3]>();
7   //~^ ERROR type provided when a const
8   example::<[usize; 4+5]>();
9   //~^ ERROR type provided when a const
10 }