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 3f9b24d commit 8cccfe2Copy full SHA for 8cccfe2
tests/test.rs
@@ -469,3 +469,13 @@ fn default_tokenstream_is_empty() {
469
470
assert!(default_token_stream.is_empty());
471
}
472
+
473
+#[test]
474
+fn tuple_indexing() {
475
+ // This behavior may change depending on https://github.com/rust-lang/rust/pull/71322
476
+ let mut tokens = "tuple.0.0".parse::<TokenStream>().unwrap().into_iter();
477
+ assert_eq!("tuple", tokens.next().unwrap().to_string());
478
+ assert_eq!(".", tokens.next().unwrap().to_string());
479
+ assert_eq!("0.0", tokens.next().unwrap().to_string());
480
+ assert!(tokens.next().is_none());
481
+}
0 commit comments