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