Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
const-generics
/
suggest_const_for_array.rs
blob: b52fd152f976a0d7bf864c1b15f3be082739b9f9 [
file
] [
log
] [
blame
]
#![
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
}