We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 578c30d commit 6e5ce9dCopy full SHA for 6e5ce9d
text/0000-target-feature-1.1.md
@@ -238,4 +238,9 @@ the language (beyond just a simple attribute) which could lead to the
238
deprecation of the `#[target_feature]` attribute.
239
240
It is also unclear how any of this interacts with effect-polymorphism at this
241
-point.
+point, but we could support something like `impl const Trait` and `T: const Trait`:
242
+
243
+```rust
244
+impl #[target_feature(enable = "...")] Trait for Type { ... }
245
+fn foo<T: #[target_feature(enable = "...")] Trait>(...) { ...}
246
+```
0 commit comments