Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
const-generics
/
generic_arg_infer
/
array-repeat-expr-lib.rs
blob: c3a67670114834d51594f98afcbb6b289fff10a1 [
file
] [
log
] [
blame
]
//@ check-pass
#![
crate_type
=
"lib"
]
// Test that encoding the hallucinated `DefId` for the `_` const argument doesn't
// ICE (see #133468). This requires this to be a library crate.
pub
fn
foo
()
{
let
s
:
[
u8
;
10
];
s
=
[
0
;
_
];
}