1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// compile-flags: -Zunstable-options --generate-link-to-definition
pub fn sub_fn() {
    barbar();
}
fn barbar() {
    bar(vec![], vec![], vec![], vec![], Bar { a: "a".into(), b: 0 });
}

pub struct Bar {
    pub a: String,
    pub b: u32,
}

pub fn foo(_b: &Bar) {}

// The goal now is to add
// a lot of lines so
// that the next content
// will be out of the screen
// to allow us to test that
// if the anchor changes to
// something outside of the
// current view, it'll
// scroll to it as expected.

// More filling content.

pub fn bar(
  _a: Vec<String>,
  _b: Vec<String>,
  _c: Vec<String>,
  _d: Vec<String>,
  _e: Bar,
) {
    sub_fn();
}