Sign in
rust
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
const-generics
/
generic_const_exprs
/
from-sig-fail.rs
blob: 16753749702947abe2daabcdecf94c9b6217ed7e [
file
] [
log
] [
blame
]
#![
feature
(
generic_const_exprs
)]
#![
allow
(
incomplete_features
)]
fn
test
<
const
N
:
usize
>()
->
[
u8
;
N
-
1
]
{
//~^ ERROR overflow
todo
!()
}
fn
main
()
{
test
::<
0
>();
}