]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/attributes.rs
Rollup merge of #93755 - ChayimFriedman2:allow-comparing-vecs-with-different-allocato...
[rust.git] / src / test / rustdoc / attributes.rs
1 #![crate_name = "foo"]
2
3 // @has foo/fn.f.html '//*[@class="rust fn"]' '#[no_mangle]'
4 #[no_mangle]
5 pub extern "C" fn f() {}
6
7 // @has foo/fn.g.html '//*[@class="rust fn"]' '#[export_name = "bar"]'
8 #[export_name = "bar"]
9 pub extern "C" fn g() {}
10
11 // @has foo/struct.Repr.html '//*[@class="docblock item-decl"]' '#[repr(C, align(8))]'
12 #[repr(C, align(8))]
13 pub struct Repr;