]> git.lizzy.rs Git - rust.git/blob - tests/target/impl.rs
Merge pull request #1776 from topecongiro/poor-formatting/index-budget
[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
11     V: Clone, // This comment is NOT removed by formating!
12 {
13     pub fn new(value: V) -> Self {
14         Test {
15             cloned_value: value.clone(),
16             value: value,
17         }
18     }
19 }
20
21 impl<T> Foo for T
22 // comment1
23 where
24     // comment2
25     // blah
26     T: Clone,
27 {
28 }