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
|
2024-03-02 14:36:52 -08:00
|
|
|
// Temporary until next release:
|
|
|
|
//@ ignore-stage2
|
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() {}
|