mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 13:46:03 +00:00
14 lines
321 B
Rust
14 lines
321 B
Rust
// Tests that attributes are correctly copied onto a re-exported item.
|
|
//@ edition:2024
|
|
#![crate_name = "re_export"]
|
|
|
|
//@ has 're_export/fn.thingy2.html' '//pre[@class="rust item-decl"]' '#[unsafe(no_mangle)]'
|
|
pub use thingymod::thingy as thingy2;
|
|
|
|
mod thingymod {
|
|
#[unsafe(no_mangle)]
|
|
pub fn thingy() {
|
|
|
|
}
|
|
}
|