Sign in
fuchsia
/
third_party
/
rust
/
87e39ac1ec0df8c45a4441cf6bb905d7fd282354
/
.
/
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
()
{}