]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/floating_point_powi.rs
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / floating_point_powi.rs
index 96101a487ee88e1199e3fb2f3d26a64b280e2ab3..e6a1c895371b6fe68622774068b4a693798350b8 100644 (file)
@@ -8,7 +8,9 @@ fn main() {
 
     let y = 4f32;
     let _ = x.powi(2) + y;
+    let _ = x.powi(2) - y;
     let _ = x + y.powi(2);
+    let _ = x - y.powi(2);
     let _ = x + (y as f32).powi(2);
     let _ = (x.powi(2) + y).sqrt();
     let _ = (x + y.powi(2)).sqrt();