We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a0a58b commit 05d22c8Copy full SHA for 05d22c8
library/alloc/tests/str.rs
@@ -1921,11 +1921,3 @@ fn different_str_pattern_forwarding_lifetimes() {
1921
1922
foo::<&str>("x");
1923
}
1924
-
1925
-#[test]
1926
-fn test_str_concat() {
1927
- let a: String = "hello".to_string();
1928
- let b: String = "world".to_string();
1929
- let s: String = format!("{}{}", a, b);
1930
- assert_eq!(s.as_bytes()[9], 'd' as u8);
1931
-}
library/alloc/tests/string.rs
@@ -721,3 +721,11 @@ fn test_from_char() {
721
let s: String = 'x'.into();
722
assert_eq!(s, 'x'.to_string());
723
724
+
725
+#[test]
726
+fn test_str_concat() {
727
+ let a: String = "hello".to_string();
728
+ let b: String = "world".to_string();
729
+ let s: String = format!("{}{}", a, b);
730
+ assert_eq!(s.as_bytes()[9], 'd' as u8);
731
+}
0 commit comments