]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/impl.rs
Tidy up and pass tests
[rust.git] / tests / target / impl.rs
index c0db6769512df1546cf42c050a1b2df8234f6ce3..5895c74bcc9f1d5dcff6a118e8778ac25c0e6fa8 100644 (file)
@@ -13,11 +13,16 @@ impl<V> Test<V>
     pub fn new(value: V) -> Self {
         Test {
             cloned_value: value.clone(),
-            value: value,
+            value,
         }
     }
 }
 
+impl X<T> /* comment */ {}
+impl Y<T> // comment
+{
+}
+
 impl<T> Foo for T
 // comment1
 where
@@ -31,3 +36,8 @@ impl<T> Foo for T
 default impl Trait for X {}
 default unsafe impl Trait for Y {}
 pub default unsafe impl Trait for Z {}
+
+// #2212
+impl ConstWithDefault {
+    default const CAN_RECONSTRUCT_QUERY_KEY: bool = false;
+}