b4bdb56f86
Leverage `anstyle-svg`, as `cargo` does now, to emit `.svg` files instead of `.stderr` files for tests that explicitly enable color output. This will make reviewing changes to the graphical output of tests much more human friendly.
22 lines
403 B
Rust
22 lines
403 B
Rust
//@ compile-flags: --error-format=human --color=always
|
|
//@ error-pattern: missing lifetime specifier
|
|
// Temporary until next release:
|
|
//@ ignore-stage2
|
|
|
|
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() {}
|