2023-03-01 16:33:57 -06:00
|
|
|
//@ compile-flags: --error-format=human --color=always
|
2023-12-08 13:09:10 -06:00
|
|
|
//@ error-pattern: missing lifetime specifier
|
2023-03-01 16:33:57 -06:00
|
|
|
|
2023-12-08 13:09:10 -06:00
|
|
|
fn short(foo_bar: &Vec<&i32>) -> &i32 {
|
2023-03-01 16:33:57 -06:00
|
|
|
&12
|
|
|
|
}
|
|
|
|
|
2023-12-08 13:09:10 -06:00
|
|
|
fn long(
|
2023-03-01 16:33:57 -06:00
|
|
|
foo_bar: &Vec<&i32>,
|
|
|
|
something_very_long_so_that_the_line_will_wrap_around__________: i32,
|
|
|
|
) -> &i32 {
|
|
|
|
&12
|
|
|
|
}
|
|
|
|
|
2023-12-08 13:09:10 -06:00
|
|
|
fn long2(
|
2023-03-01 16:33:57 -06:00
|
|
|
foo_bar: &Vec<&i32>) -> &i32 {
|
|
|
|
&12
|
|
|
|
}
|
|
|
|
fn main() {}
|