fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
1.1 KiB27 linesraw
1error[E0106]: missing lifetime specifier
2  --> $DIR/issue-30255.rs:9:24
3   |
4LL | fn f(a: &S, b: i32) -> &i32 {
5   |                        ^ expected lifetime parameter
6   |
7   = help: this function's return type contains a borrowed value, but the signature does not say which one of `a`'s 2 lifetimes it is borrowed from
8
9error[E0106]: missing lifetime specifier
10  --> $DIR/issue-30255.rs:14:34
11   |
12LL | fn g(a: &S, b: bool, c: &i32) -> &i32 {
13   |                                  ^ expected lifetime parameter
14   |
15   = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from one of `a`'s 2 lifetimes or `c`
16
17error[E0106]: missing lifetime specifier
18  --> $DIR/issue-30255.rs:19:44
19   |
20LL | fn h(a: &bool, b: bool, c: &S, d: &i32) -> &i32 {
21   |                                            ^ expected lifetime parameter
22   |
23   = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `a`, one of `c`'s 2 lifetimes, or `d`
24
25error: aborting due to 3 previous errors
26
27For more information about this error, try `rustc --explain E0106`.