]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/primitive-link.rs
Update snap from `1.0.1` to `1.1.0`
[rust.git] / tests / rustdoc / primitive-link.rs
1 #![crate_name = "foo"]
2
3
4 // @has foo/struct.Foo.html '//*[@class="docblock"]/p/a[@href="{{channel}}/std/primitive.u32.html"]' 'u32'
5 // @has foo/struct.Foo.html '//*[@class="docblock"]/p/a[@href="{{channel}}/std/primitive.i64.html"]' 'i64'
6 // @has foo/struct.Foo.html '//*[@class="docblock"]/p/a[@href="{{channel}}/std/primitive.i32.html"]' 'std::primitive::i32'
7 // @has foo/struct.Foo.html '//*[@class="docblock"]/p/a[@href="{{channel}}/std/primitive.str.html"]' 'std::primitive::str'
8
9 // @has foo/struct.Foo.html '//*[@class="docblock"]/p/a[@href="{{channel}}/std/primitive.i32.html#associatedconstant.MAX"]' 'std::primitive::i32::MAX'
10
11 /// It contains [`u32`] and [i64].
12 /// It also links to [std::primitive::i32], [std::primitive::str],
13 /// and [`std::primitive::i32::MAX`].
14 pub struct Foo;