]> git.proxmox.com Git - rustc.git/blobdiff - src/test/rustdoc-gui/src/link_to_definition/lib.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / rustdoc-gui / src / link_to_definition / lib.rs
index de9ee66a2bad08acd7ea8c562007f57d72540f54..419a9cceec5f3fe9bb5164d10e34558aacb22778 100644 (file)
@@ -1,6 +1,35 @@
+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();
+}