]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-before-const.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / suggestions / lifetimes / missing-lifetimes-in-signature-before-const.stderr
CommitLineData
04454e1e
FG
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`.