Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
suggestions
/
lifetimes
/
missing-lifetimes-in-signature-before-const.fixed
blob: 7ad2d60a68497d5479ee072f332bb323ba83562e [
file
] [
log
] [
blame
]
//@ 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"
);
}