Skip to content

Commit 41f9b57

Browse files
Add regression test for non local items link generation
1 parent 9224387 commit 41f9b57

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// compile-flags: -Zunstable-options --generate-link-to-definition
2+
3+
#![crate_name = "foo"]
4+
5+
use std::sync::atomic::AtomicIsize;
6+
7+
// @has 'src/foo/jump-to-non-local-method.rs.html'
8+
// @has - '//a[@href="https://doc.rust-lang.org/nightly/core/sync/atomic/struct.AtomicIsize.html#method.new"]' 'AtomicIsize::new'
9+
10+
pub fn bar() {
11+
let _ = AtomicIsize::new(0);
12+
b();
13+
}
14+
15+
fn b() {}

0 commit comments

Comments
 (0)