mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
6fd175185e
Fix #108547.
4.1 KiB
4.1 KiB
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`.
--> $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`.