fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
4.1 KiB46 linesraw
1error[E0106]: missing lifetime specifier
2  --> $DIR/multiline-multipart-suggestion.rs:4:34
3   |
4LL | fn short(foo_bar: &Vec<&i32>) -> &i32 {
5   |                   ----------     ^ expected named lifetime parameter
6   |
7   = help: this function's return type contains a borrowed value, but the signature does not say which one of `foo_bar`'s 2 lifetimes it is borrowed from
8help: consider introducing a named lifetime parameter
9   |
10LL | fn short<'a>(foo_bar: &'a Vec<&'a i32>) -> &'a i32 {
11   |         ++++           ++      ++           ++
12
13error[E0106]: missing lifetime specifier
14  --> $DIR/multiline-multipart-suggestion.rs:11:6
15   |
16LL |     foo_bar: &Vec<&i32>,
17   |              ----------
18LL |     something_very_long_so_that_the_line_will_wrap_around__________: i32,
19LL | ) -> &i32 {
20   |      ^ expected named lifetime parameter
21   |
22   = help: this function's return type contains a borrowed value, but the signature does not say which one of `foo_bar`'s 2 lifetimes it is borrowed from
23help: consider introducing a named lifetime parameter
24   |
25LL ~ fn long<'a>(
26LL ~     foo_bar: &'a Vec<&'a i32>,
27LL |     something_very_long_so_that_the_line_will_wrap_around__________: i32,
28LL ~ ) -> &'a i32 {
29   |
30
31error[E0106]: missing lifetime specifier
32  --> $DIR/multiline-multipart-suggestion.rs:16:29
33   |
34LL |     foo_bar: &Vec<&i32>) -> &i32 {
35   |              ----------     ^ expected named lifetime parameter
36   |
37   = help: this function's return type contains a borrowed value, but the signature does not say which one of `foo_bar`'s 2 lifetimes it is borrowed from
38help: consider introducing a named lifetime parameter
39   |
40LL ~ fn long2<'a>(
41LL ~     foo_bar: &'a Vec<&'a i32>) -> &'a i32 {
42   |
43
44error: aborting due to 3 previous errors
45
46For more information about this error, try `rustc --explain E0106`.