mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
32e48fc36b
this is kinda jank because it means people need both machines to bless the tests
4.1 KiB
4.1 KiB
error[E0106]: missing lifetime specifier
--> $DIR/multiline-multipart-suggestion.rs:8: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:15: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:20: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:8: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:15: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:20: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`.