rust/tests/target/impl.rs
2017-07-10 14:38:16 +09:00

28 lines
480 B
Rust

// Test impls
impl<T> JSTraceable for SmallVec<[T; 1]> {}
impl<K, V, NodeRef: Deref<Target = Node<K, V>>> Handle<NodeRef, handle::Edge, handle::Internal> {
// Keep this.
}
impl<V> Test<V>
where
V: Clone, // This comment is NOT removed by formating!
{
pub fn new(value: V) -> Self {
Test {
cloned_value: value.clone(),
value: value,
}
}
}
impl<T> Foo for T
// comment1
where
// comment2
// blah
T: Clone,
{
}