|
2 | 2 |
|
3 | 3 | #![crate_name = "foo"] |
4 | 4 |
|
5 | | -// @has 'foo/index.html' |
| 5 | +//@ has 'foo/index.html' |
6 | 6 |
|
7 | 7 | // First we check that both the static and the function have a "sup" element |
8 | 8 | // to tell they're unsafe. |
9 | 9 |
|
10 | | -// @count - '//ul[@class="item-table"]//sup[@title="unsafe static"]' 1 |
11 | | -// @has - '//ul[@class="item-table"]//sup[@title="unsafe static"]' '⚠' |
12 | | -// @count - '//ul[@class="item-table"]//sup[@title="unsafe function"]' 1 |
13 | | -// @has - '//ul[@class="item-table"]//sup[@title="unsafe function"]' '⚠' |
| 10 | +//@ count - '//dl[@class="item-table"]//sup[@title="unsafe static"]' 1 |
| 11 | +//@ has - '//dl[@class="item-table"]//sup[@title="unsafe static"]' '⚠' |
| 12 | +//@ count - '//dl[@class="item-table"]//sup[@title="unsafe function"]' 1 |
| 13 | +//@ has - '//dl[@class="item-table"]//sup[@title="unsafe function"]' '⚠' |
14 | 14 |
|
15 | 15 | unsafe extern "C" { |
16 | | - // @has 'foo/static.FOO.html' |
17 | | - // @has - '//pre[@class="rust item-decl"]' 'pub static FOO: i32' |
| 16 | + //@ has 'foo/static.FOO.html' |
| 17 | + //@ has - '//pre[@class="rust item-decl"]' 'pub static FOO: i32' |
18 | 18 | pub safe static FOO: i32; |
19 | | - // @has 'foo/static.BAR.html' |
20 | | - // @has - '//pre[@class="rust item-decl"]' 'pub unsafe static BAR: i32' |
| 19 | + //@ has 'foo/static.BAR.html' |
| 20 | + //@ has - '//pre[@class="rust item-decl"]' 'pub unsafe static BAR: i32' |
21 | 21 | pub static BAR: i32; |
22 | 22 |
|
23 | | - // @has 'foo/fn.foo.html' |
24 | | - // @has - '//pre[@class="rust item-decl"]' 'pub extern "C" fn foo()' |
| 23 | + //@ has 'foo/fn.foo.html' |
| 24 | + //@ has - '//pre[@class="rust item-decl"]' 'pub extern "C" fn foo()' |
25 | 25 | pub safe fn foo(); |
26 | | - // @has 'foo/fn.bar.html' |
27 | | - // @has - '//pre[@class="rust item-decl"]' 'pub unsafe extern "C" fn bar()' |
| 26 | + //@ has 'foo/fn.bar.html' |
| 27 | + //@ has - '//pre[@class="rust item-decl"]' 'pub unsafe extern "C" fn bar()' |
28 | 28 | pub fn bar(); |
29 | 29 | } |
0 commit comments