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 6417f8f commit e5b23dbCopy full SHA for e5b23db
tests/test.rs
@@ -705,6 +705,17 @@ fn raw_identifier() {
705
assert!(tts.next().is_none());
706
}
707
708
+#[test]
709
+fn test_display_ident() {
710
+ let ident = Ident::new("proc_macro", Span::call_site());
711
+ assert_eq!(format!("{ident}"), "proc_macro");
712
+ assert_eq!(format!("{ident:-^14}"), "--proc_macro--");
713
+
714
+ let ident = Ident::new_raw("proc_macro", Span::call_site());
715
+ assert_eq!(format!("{ident}"), "r#proc_macro");
716
+ assert_eq!(format!("{ident:-^14}"), "r#--proc_macro--"); // FIXME
717
+}
718
719
#[test]
720
fn test_debug_ident() {
721
let ident = Ident::new("proc_macro", Span::call_site());
0 commit comments