]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/impl.rs
Fix static async closure qualifier order
[rust.git] / tests / target / impl.rs
index c0db6769512df1546cf42c050a1b2df8234f6ce3..f37fbcf1fcbcc607d3bd6890f90d3c3168b87390 100644 (file)
@@ -8,16 +8,21 @@ impl<K, V, NodeRef: Deref<Target = Node<K, V>>> Handle<NodeRef, handle::Edge, ha
 
 impl<V> Test<V>
 where
-    V: Clone, // This comment is NOT removed by formating!
+    V: Clone, // This comment is NOT removed by formatting!
 {
     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;
+}