os-rust/tests/rustdoc/jump-to-non-local-method.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
381 B
Rust
Raw Normal View History

// 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() {}