]> git.lizzy.rs Git - rust.git/blob - tests/target/impl.rs
Allow comments after where clause
[rust.git] / tests / target / impl.rs
1 // Test impls
2
3 impl<T> JSTraceable for SmallVec<[T; 1]> {}
4
5 impl<K, V, NodeRef: Deref<Target = Node<K, V>>> Handle<NodeRef, handle::Edge, handle::Internal> {
6     // Keep this.
7 }
8
9 impl<V> Test<V>
10     where V: Clone // This comment is NOT removed by formating!
11 {
12     pub fn new(value: V) -> Self {
13         Test {
14             cloned_value: value.clone(),
15             value: value,
16         }
17     }
18 }