mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
Add regression test for non local items link generation
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// compile-flags: -Zunstable-options --generate-link-to-definition
|
||||
|
||||
#![crate_name = "foo"]
|
||||
|
||||
use std::sync::atomic::AtomicIsize;
|
||||
|
||||
// @has 'src/foo/jump-to-non-local-method.rs.html'
|
||||
// @has - '//a[@href="https://doc.rust-lang.org/nightly/core/sync/atomic/struct.AtomicIsize.html#method.new"]' 'AtomicIsize::new'
|
||||
|
||||
pub fn bar() {
|
||||
let _ = AtomicIsize::new(0);
|
||||
b();
|
||||
}
|
||||
|
||||
fn b() {}
|
||||
Reference in New Issue
Block a user