Add a pretty printer test of impl<T> const Trait

This commit is contained in:
David Tolnay 2021-12-29 12:05:51 -08:00
parent 2b67c30bfe
commit f3df63f8ee
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -611,6 +611,12 @@ fn test_item() {
), ),
"pub impl Trait for Struct {}", "pub impl Trait for Struct {}",
); );
assert_eq!(
stringify_item!(
impl<T> const Trait for T {}
),
"impl const <T> Trait for T {}", // FIXME
);
assert_eq!( assert_eq!(
stringify_item!( stringify_item!(
impl ~const Struct {} impl ~const Struct {}