]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_parse_format/src/tests.rs
Rollup merge of #103110 - RalfJung:manual-send, r=thomcc
[rust.git] / compiler / rustc_parse_format / src / tests.rs
index 2f8c229c68ffe1e7ab48eb5dd818b462782ca103..3f9cb149b53eb402fec088035257425eca1c36e9 100644 (file)
@@ -57,6 +57,21 @@ fn invalid06() {
     musterr("{:>>>}")
 }
 
+#[test]
+fn invalid_position() {
+    musterr("{18446744073709551616}");
+}
+
+#[test]
+fn invalid_width() {
+    musterr("{:18446744073709551616}");
+}
+
+#[test]
+fn invalid_precision() {
+    musterr("{:.18446744073709551616}");
+}
+
 #[test]
 fn format_nothing() {
     same(