]> git.proxmox.com Git - rustc.git/blobdiff - src/test/rustdoc/show-const-contents.rs
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / rustdoc / show-const-contents.rs
index e84f6e52c75aa114cec4f6d22caab54d9d08afae..064c026e6a078344a7ebbe4149f1deb93b5fbe8c 100644 (file)
@@ -47,9 +47,9 @@ pub struct MyTypeWithStr(&'static str);
 // @!has show_const_contents/constant.MY_TYPE_WITH_STR.html '; //'
 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.EPSILON.html '; //'
-pub use std::f32::EPSILON;
+// @has show_const_contents/constant.PI.html '= 3.14159265358979323846264338327950288f32;'
+// @has show_const_contents/constant.PI.html '; // 3.14159274f32'
+pub use std::f32::consts::PI;
 
 // @has show_const_contents/constant.MAX.html '= i32::max_value(); // 2_147_483_647i32'
 pub use std::i32::MAX;