mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
6fd175185e
Fix #108547.
20 lines
434 B
Rust
20 lines
434 B
Rust
// compile-flags: --error-format=human --color=always
|
|
// ignore-windows
|
|
|
|
fn short(foo_bar: &Vec<&i32>) -> &i32 { //~ ERROR missing lifetime specifier
|
|
&12
|
|
}
|
|
|
|
fn long( //~ ERROR missing lifetime specifier
|
|
foo_bar: &Vec<&i32>,
|
|
something_very_long_so_that_the_line_will_wrap_around__________: i32,
|
|
) -> &i32 {
|
|
&12
|
|
}
|
|
|
|
fn long2( //~ ERROR missing lifetime specifier
|
|
foo_bar: &Vec<&i32>) -> &i32 {
|
|
&12
|
|
}
|
|
fn main() {}
|