blob: 110468cbbc52e80e0233f55891c331bbe05aece6 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// run-rustfix
// https://github.com/rust-lang/rust/issues/95616
fn buggy_const<const N: usize>(_a: &Option<[u8; N]>, _f: &str) -> &str { //~ERROR [E0106]
return "";
}
fn main() {
buggy_const(&Some([69,69,69,69,0]), "test");
}
|