2015-10-21 22:21:14 +02:00
|
|
|
// Test impls
|
|
|
|
|
|
|
|
impl<T> JSTraceable for SmallVec<[T; 1]> {}
|
2015-11-24 05:54:44 +01:00
|
|
|
|
|
|
|
impl<K, V, NodeRef: Deref<Target = Node<K, V>>> Handle<NodeRef, handle::Edge, handle::Internal> {
|
|
|
|
// Keep this.
|
|
|
|
}
|
2017-05-26 19:03:22 +02:00
|
|
|
|
|
|
|
impl<V> Test<V>
|
2017-06-12 06:01:41 +02:00
|
|
|
where
|
|
|
|
V: Clone, // This comment is NOT removed by formating!
|
2017-05-26 19:03:22 +02:00
|
|
|
{
|
|
|
|
pub fn new(value: V) -> Self {
|
|
|
|
Test {
|
|
|
|
cloned_value: value.clone(),
|
|
|
|
value: value,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-07-10 07:35:50 +02:00
|
|
|
|
2017-08-27 17:18:17 +02:00
|
|
|
impl X<T> /* comment */ {}
|
|
|
|
impl Y<T> // comment
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-07-10 07:35:50 +02:00
|
|
|
impl<T> Foo for T
|
|
|
|
// comment1
|
|
|
|
where
|
|
|
|
// comment2
|
|
|
|
// blah
|
|
|
|
T: Clone,
|
|
|
|
{
|
|
|
|
}
|
2017-07-27 02:43:35 +02:00
|
|
|
|
|
|
|
// #1823
|
|
|
|
default impl Trait for X {}
|
|
|
|
default unsafe impl Trait for Y {}
|
|
|
|
pub default unsafe impl Trait for Z {}
|