]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/const-value-display.rs
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / rustdoc / const-value-display.rs
1 #![crate_name = "foo"]
2
3 // @has 'foo/constant.HOUR_IN_SECONDS.html'
4 // @has - '//*[@class="item-decl"]//code' 'pub const HOUR_IN_SECONDS: u64 = _; // 3_600u64'
5 pub const HOUR_IN_SECONDS: u64 = 60 * 60;
6
7 // @has 'foo/constant.NEGATIVE.html'
8 // @has - '//*[@class="item-decl"]//code' 'pub const NEGATIVE: i64 = _; // -3_600i64'
9 pub const NEGATIVE: i64 = -60 * 60;