]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-30255.stderr
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-30255.stderr
1 error[E0106]: missing lifetime specifier
2   --> $DIR/issue-30255.rs:9:24
3    |
4 LL | 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
9 error[E0106]: missing lifetime specifier
10   --> $DIR/issue-30255.rs:14:34
11    |
12 LL | 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
17 error[E0106]: missing lifetime specifier
18   --> $DIR/issue-30255.rs:19:44
19    |
20 LL | 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
25 error: aborting due to 3 previous errors
26
27 For more information about this error, try `rustc --explain E0106`.