about summary refs log tree commit diff
path: root/tests/rustdoc/attributes-re-export-2021-edition.rs
blob: 04ee6c273dd61ffb6fbfd0e1d8e7bece1bba0a00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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() {

    }
}