summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/multiline-multipart-suggestion.rs
blob: 77d0322d05fcfedf83230d5ebdab5bddb3b927d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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() {}