]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs
Rollup merge of #91641 - dtolnay:cchar-if, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / tests / ui-toml / toml_disallowed_methods / conf_disallowed_methods.rs
index cb449b45bde8539ead3d7b906a352fd4e3cc17bf..338b3b5b28f429b9700d5849886109698f758242 100644 (file)
@@ -7,6 +7,11 @@ fn main() {
     let re = Regex::new(r"ab.*c").unwrap();
     re.is_match("abc");
 
-    let a = vec![1, 2, 3, 4];
+    let mut a = vec![1, 2, 3, 4];
     a.iter().sum::<i32>();
+
+    a.sort_unstable();
+
+    let _ = 2.0f32.clamp(3.0f32, 4.0f32);
+    let _ = 2.0f64.clamp(3.0f64, 4.0f64);
 }