fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0106]: missing lifetime specifier 2 --> $DIR/missing-lifetimes-in-signature-before-const.rs:4:67 3 | 4LL | fn buggy_const<const N: usize>(_a: &Option<[u8; N]>, _f: &str) -> &str { 5 | ---------------- ---- ^ expected named lifetime parameter 6 | 7 = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `_a` or `_f` 8help: consider introducing a named lifetime parameter 9 | 10LL | fn buggy_const<'a, const N: usize>(_a: &'a Option<[u8; N]>, _f: &'a str) -> &'a str { 11 | +++ ++ ++ ++ 12 13error: aborting due to previous error 14 15For more information about this error, try `rustc --explain E0106`.