Skip to content

Commit f3df63f

Browse files
committed
Add a pretty printer test of impl<T> const Trait
1 parent 2b67c30 commit f3df63f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/ui/macros/stringify.rs

+6
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,12 @@ fn test_item() {
611611
),
612612
"pub impl Trait for Struct {}",
613613
);
614+
assert_eq!(
615+
stringify_item!(
616+
impl<T> const Trait for T {}
617+
),
618+
"impl const <T> Trait for T {}", // FIXME
619+
);
614620
assert_eq!(
615621
stringify_item!(
616622
impl ~const Struct {}

0 commit comments

Comments
 (0)