Fix broken show-const-contents test

This commit is contained in:
Linus Färnstrand 2020-01-19 01:51:18 +01:00
parent 6ce16cfa42
commit 9fcbaa4158

View file

@ -47,9 +47,9 @@ pub struct MyTypeWithStr(&'static str);
// @!has show_const_contents/constant.MY_TYPE_WITH_STR.html '; //' // @!has show_const_contents/constant.MY_TYPE_WITH_STR.html '; //'
pub const MY_TYPE_WITH_STR: MyTypeWithStr = MyTypeWithStr("show this"); pub const MY_TYPE_WITH_STR: MyTypeWithStr = MyTypeWithStr("show this");
// @has show_const_contents/constant.EPSILON.html '1.1920929e-7f32;' // @has show_const_contents/constant.PI.html '= 3.14159265358979323846264338327950288f32;'
// @!has show_const_contents/constant.EPSILON.html '; //' // @has show_const_contents/constant.PI.html '; // 3.14159274f32'
pub use std::f32::EPSILON; pub use std::f32::consts::PI;
// @has show_const_contents/constant.MAX.html '= i32::max_value(); // 2_147_483_647i32' // @has show_const_contents/constant.MAX.html '= i32::max_value(); // 2_147_483_647i32'
pub use std::i32::MAX; pub use std::i32::MAX;