mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
21e97a67ab
beta was branched long ago, so can be removed
20 lines
352 B
Rust
20 lines
352 B
Rust
//@ compile-flags: --error-format=human --color=always
|
|
//@ error-pattern: missing lifetime specifier
|
|
|
|
fn short(foo_bar: &Vec<&i32>) -> &i32 {
|
|
&12
|
|
}
|
|
|
|
fn long(
|
|
foo_bar: &Vec<&i32>,
|
|
something_very_long_so_that_the_line_will_wrap_around__________: i32,
|
|
) -> &i32 {
|
|
&12
|
|
}
|
|
|
|
fn long2(
|
|
foo_bar: &Vec<&i32>) -> &i32 {
|
|
&12
|
|
}
|
|
fn main() {}
|