We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c336478 commit 5a0a58bCopy full SHA for 5a0a58b
library/alloc/tests/str.rs
@@ -1921,3 +1921,11 @@ 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
+}
src/test/ui/str-concat.rs
0 commit comments