1 // rustfmt-normalize_comments: true
2 impl Foo for Bar { fn foo() { "hi" } }
5 // Associated Constants
16 pub unsafe impl<'a, 'b, X, Y: Foo<Bar>> !Foo<'a, X> for Bar<'b, Y> where X: Foo<'a, Z> {
20 impl<'a, 'b, X, Y: Foo<Bar>> Foo<'a, X> for Bar<'b, Y> where X: Fooooooooooooooooooooooooooooo<'a, Z>
25 impl<'a, 'b, X, Y: Foo<Bar>> Foo<'a, X> for Bar<'b, Y> where X: Foooooooooooooooooooooooooooo<'a, Z>
30 impl<T> Foo for Bar<T> where T: Baz
34 impl<T> Foo for Bar<T> where T: Baz { /* Comment */ }
66 impl Foo { add_fun!(); }
73 impl X { fn do_parse( mut self : X ) {} }
76 fn bar(self: X< 'a , 'b >, y: Y) {}
78 fn bad(&self, ( x, y): CoorT) {}
80 fn turbo_bad(self: X< 'a , 'b > , ( x, y): CoorT) {
85 pub impl<T> Foo for Bar<T> where T: Foo
90 pub impl<T, Z> Foo for Bar<T, Z> where T: Foo, Z: Baz {}
93 impl<T> PartialEq for S<T> where T: PartialEq {
94 fn eq(&self, other: &Self) {
99 impl<T> PartialEq for S<T> where T: PartialEq { }
102 impl<BorrowType, K, V, NodeType, HandleType> Handle<NodeRef<BorrowType, K, V, NodeType>, HandleType> {
105 impl<BorrowType, K, V, NodeType, HandleType> PartialEq for Handle<NodeRef<BorrowType, K, V, NodeType>, HandleType> {
116 impl<ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNodeFoo> Issue1249<ConcreteThreadSafeLayoutNode> {
117 // Creates a new flow constructor.
122 impl<#[may_dangle] K, #[may_dangle] V> Drop for RawTable<K, V> {
127 pub trait Number: Copy + Eq + Not<Output = Self> + Shl<u8, Output = Self> +
128 Shr<u8, Output = Self> +
129 BitAnd<Self, Output=Self> + BitOr<Self, Output=Self> + BitAndAssign + BitOrAssign
139 pub trait SomeTrait : Clone + Eq + PartialEq + Ord + PartialOrd + Default + Hash + Debug + Display + Write + Read + FromStr {
147 aaaaaaaaaa: aaaaaaaaaa,
148 bbbbbbbbbb: bbbbbbbbbb,
149 cccccccccc: cccccccccc,
157 impl<'a, 'b, 'c> SomeThing<Something> for (&'a mut SomethingLong, &'b mut SomethingLong, &'c mut SomethingLong) {
162 impl<'seq1, 'seq2, 'body, 'scope, Channel> Adc12< Dual, MasterRunningDma<'seq1, 'body, 'scope, Channel>, SlaveRunningDma<'seq2, 'body, 'scope>, > where Channel: DmaChannel, {}
165 impl const std::default::Default for Struct {
167 fn default() -> Self {