summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/suggest_const_for_array.rs
blob: f3e5a3186cdd63509d8e3fac70b5b01292299acb (plain)
1
2
3
4
5
6
7
8
9
10
#![crate_type = "lib"]

fn example<const N: usize>() {}

fn other() {
  example::<[usize; 3]>();
  //~^ ERROR type provided when a const
  example::<[usize; 4+5]>();
  //~^ ERROR type provided when a const
}