rust/tests/target/impl.rs

20 lines
397 B
Rust
Raw Normal View History

// Test impls
impl<T> JSTraceable for SmallVec<[T; 1]> {}
2015-11-23 22:54:44 -06:00
impl<K, V, NodeRef: Deref<Target = Node<K, V>>> Handle<NodeRef, handle::Edge, handle::Internal> {
// Keep this.
}
2017-05-26 12:03:22 -05:00
impl<V> Test<V>
2017-06-11 23:01:41 -05:00
where
V: Clone, // This comment is NOT removed by formating!
2017-05-26 12:03:22 -05:00
{
pub fn new(value: V) -> Self {
Test {
cloned_value: value.clone(),
value: value,
}
}
}