mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
11 lines
238 B
Rust
11 lines
238 B
Rust
//@ 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");
|
|
}
|