mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
9 lines
219 B
Rust
9 lines
219 B
Rust
#![crate_name = "foo"]
|
|
|
|
//@ has 'foo/fn.f.html'
|
|
//@ has - //*[@'class="code-attribute"]' '#[unsafe(export_name = "f")]'
|
|
//@ has - //*[@'class="rust item-decl"]' 'pub fn f()'
|
|
#[unsafe(export_name = "\
|
|
f")]
|
|
pub fn f() {}
|