]> git.lizzy.rs Git - rust.git/blobdiff - tests/source/trait.rs
Prevent duplicate comma when formatting struct pattern with ".."
[rust.git] / tests / source / trait.rs
index 80ee0188a6baac4ac8cea857a5b789127f97d3e3..b6db9e1590d416a932db52ac89999b221e75d544 100644 (file)
@@ -174,3 +174,10 @@ trait B<'a, 'b, 'c,T> = Debug<'a, T> where for<'b> &'b Self:
     + DDDDDDDD
     + DDDDDDDDD
     + EEEEEEE;
+
+trait Visible {
+    pub const C: i32;
+    pub type T;
+    pub fn f();
+    pub fn g() {}
+}