We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41626dd commit 5606f18Copy full SHA for 5606f18
src/items/generics.md
@@ -92,10 +92,11 @@ attributes may give meaning to it.
92
This example shows using a custom derive attribute to modify the meaning of a
93
generic parameter.
94
95
-```ignore
+```rust,ignore
96
// Assume that the derive for MyFlexibleClone declared `my_flexible_clone` as
97
// an attribute it understands.
98
-#[derive(MyFlexibleClone)] struct Foo<#[my_flexible_clone(unbounded)] H> {
+#[derive(MyFlexibleClone)]
99
+struct Foo<#[my_flexible_clone(unbounded)] H> {
100
a: *const H
101
}
102
```
0 commit comments