blob: c1f725db126a0ec49671628269837a303c47b636 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//@ check-pass
#![feature(generic_arg_infer)]
#![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; _];
}
|