summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/multiline-multipart-suggestion.stderr
blob: 045a86b4f541f50a4c71cf239775ad970a950a2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
error[E0106]: missing lifetime specifier
  --> $DIR/multiline-multipart-suggestion.rs:4:34
   |
LL | fn short(foo_bar: &Vec<&i32>) -> &i32 {
   |                   ----------     ^ expected named lifetime parameter
   |
   = 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
help: consider introducing a named lifetime parameter
   |
LL | fn short<'a>(foo_bar: &'a Vec<&'a i32>) -> &'a i32 {
   |         ++++           ++      ++           ++

error[E0106]: missing lifetime specifier
  --> $DIR/multiline-multipart-suggestion.rs:11:6
   |
LL |     foo_bar: &Vec<&i32>,
   |              ----------
LL |     something_very_long_so_that_the_line_will_wrap_around__________: i32,
LL | ) -> &i32 {
   |      ^ expected named lifetime parameter
   |
   = 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
help: consider introducing a named lifetime parameter
   |
LL ~ fn long<'a>(
LL ~     foo_bar: &'a Vec<&'a i32>,
LL |     something_very_long_so_that_the_line_will_wrap_around__________: i32,
LL ~ ) -> &'a i32 {
   |

error[E0106]: missing lifetime specifier
  --> $DIR/multiline-multipart-suggestion.rs:16:29
   |
LL |     foo_bar: &Vec<&i32>) -> &i32 {
   |              ----------     ^ expected named lifetime parameter
   |
   = 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
help: consider introducing a named lifetime parameter
   |
LL ~ fn long2<'a>(
LL ~     foo_bar: &'a Vec<&'a i32>) -> &'a i32 {
   |

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0106`.