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 78f78ab commit e39fca3Copy full SHA for e39fca3
tests/test_item.rs
@@ -241,3 +241,28 @@ fn test_supertraits() {
241
}
242
"###);
243
244
+
245
+#[test]
246
+fn test_type_empty_bounds() {
247
+ #[rustfmt::skip]
248
+ let tokens = quote! {
249
+ trait Foo {
250
+ type Bar: ;
251
+ }
252
+ };
253
254
+ snapshot!(tokens as ItemTrait, @r###"
255
+ ItemTrait {
256
+ vis: Inherited,
257
+ ident: "Foo",
258
+ generics: Generics,
259
+ items: [
260
+ TraitItem::Type {
261
+ ident: "Bar",
262
263
+ colon_token: Some,
264
+ },
265
+ ],
266
267
+ "###);
268
+}
0 commit comments