Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
const-generics
/
occurs-check
/
unused-substs-4.rs
blob: 03c2f54861b431cf19a2eb91d57e30f4cbb4f076 [
file
] [
log
] [
blame
] [
edit
]
#![
feature
(
generic_const_exprs
)]
#![
allow
(
incomplete_features
)]
fn
bind
<
const
N
:
usize
>(
value
:
[
u8
;
N
])
->
[
u8
;
3
+
4
]
{
todo
!()
}
fn
main
()
{
let
mut
arr
=
Default
::
default
();
arr
=
bind
(
arr
);
//~ ERROR mismatched type
}