]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/attributes.rs
Auto merge of #107768 - matthiaskrgr:rollup-9u4cal4, r=matthiaskrgr
[rust.git] / tests / rustdoc / attributes.rs
1 #![crate_name = "foo"]
2
3 // @has foo/fn.f.html '//pre[@class="rust item-decl"]' '#[no_mangle]'
4 #[no_mangle]
5 pub extern "C" fn f() {}
6
7 // @has foo/fn.g.html '//pre[@class="rust item-decl"]' '#[export_name = "bar"]'
8 #[export_name = "bar"]
9 pub extern "C" fn g() {}
10
11 // @has foo/struct.Repr.html '//pre[@class="rust item-decl"]' '#[repr(C, align(8))]'
12 #[repr(C, align(8))]
13 pub struct Repr;