diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2017-06-13 14:24:53 +1200 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2017-06-13 14:24:53 +1200 |
| commit | bf49719117e83f080afd00a4e65d7a249cd415ba (patch) | |
| tree | bc8163b91dcddec9f22a08e966ed25ba7b532f60 /tests/source/impls.rs | |
| parent | 67e26970c3578751ffe85474f682acaf9143243b (diff) | |
| parent | 5531a93b573c14ca4e6d8a8ad665cb0823abea81 (diff) | |
Merge branch 'master' of github.com:rust-lang-nursery/rustfmt
Diffstat (limited to 'tests/source/impls.rs')
| -rw-r--r-- | tests/source/impls.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/source/impls.rs b/tests/source/impls.rs index 1c38a2ff284..17588fb9d35 100644 --- a/tests/source/impls.rs +++ b/tests/source/impls.rs @@ -122,3 +122,20 @@ impl<ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNodeFoo> Issue1249<ConcreteTh 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 +} |
