Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
const-generics
/
generic-param-mismatch.rs
blob: 22fffe47dcc2f5c91941de8bc901b874a21cafa2 [
file
] [
log
] [
blame
]
// revisions: full min
#![
cfg_attr
(
full
,
allow
(
incomplete_features
))]
#![
cfg_attr
(
full
,
feature
(
const_generics
))]
fn
test
<
const
N
:
usize
,
const
M
:
usize
>()
->
[
u8
;
M
]
{
[
0
;
N
]
//~ ERROR mismatched types
}
fn
main
()
{}