2023-03-01 22:33:57 +00:00
|
|
|
// compile-flags: --error-format=human --color=always
|
2023-12-08 14:09:10 -05:00
|
|
|
// error-pattern: missing lifetime specifier
|
2023-12-09 08:40:55 -05:00
|
|
|
|
|
|
|
// revisions: windows not-windows
|
|
|
|
// [windows]only-windows
|
|
|
|
// [not-windows]ignore-windows
|
2023-03-01 22:33:57 +00:00
|
|
|
|
2023-12-08 14:09:10 -05:00
|
|
|
fn short(foo_bar: &Vec<&i32>) -> &i32 {
|
2023-03-01 22:33:57 +00:00
|
|
|
&12
|
|
|
|
}
|
|
|
|
|
2023-12-08 14:09:10 -05:00
|
|
|
fn long(
|
2023-03-01 22:33:57 +00:00
|
|
|
foo_bar: &Vec<&i32>,
|
|
|
|
something_very_long_so_that_the_line_will_wrap_around__________: i32,
|
|
|
|
) -> &i32 {
|
|
|
|
&12
|
|
|
|
}
|
|
|
|
|
2023-12-08 14:09:10 -05:00
|
|
|
fn long2(
|
2023-03-01 22:33:57 +00:00
|
|
|
foo_bar: &Vec<&i32>) -> &i32 {
|
|
|
|
&12
|
|
|
|
}
|
|
|
|
fn main() {}
|