diff options
Diffstat (limited to 'tests/target/impls.rs')
| -rw-r--r-- | tests/target/impls.rs | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/tests/target/impls.rs b/tests/target/impls.rs index f8b9f43aeb0..654d4be8967 100644 --- a/tests/target/impls.rs +++ b/tests/target/impls.rs @@ -126,8 +126,8 @@ mod m { impl<T> PartialEq for S<T> where T: PartialEq {} } -impl<BorrowType, K, V, NodeType, HandleType> Handle<NodeRef<BorrowType, K, V, NodeType>, - HandleType> { +impl<BorrowType, K, V, NodeType, HandleType> + Handle<NodeRef<BorrowType, K, V, NodeType>, HandleType> { } impl<BorrowType, K, V, NodeType, HandleType> PartialEq @@ -154,3 +154,35 @@ impl<ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNodeFoo> impl<#[may_dangle] K, #[may_dangle] V> Drop for RawTable<K, V> { fn drop() {} } + +// #1168 +pub trait Number + : Copy + + Eq + + Not<Output = Self> + + Shl<u8, Output = Self> + + Shr<u8, Output = Self> + + BitAnd<Self, Output = Self> + + BitOr<Self, Output = Self> + + BitAndAssign + + BitOrAssign { + // test + fn zero() -> Self; +} + +// #1642 +pub trait SomeTrait + : Clone + + Eq + + PartialEq + + Ord + + PartialOrd + + Default + + Hash + + Debug + + Display + + Write + + Read + + FromStr { + // comment +} |
