We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b9a16f commit 71b9069Copy full SHA for 71b9069
text/0000-target-feature-1.1.md
@@ -237,9 +237,14 @@ the language (beyond just a simple attribute) which could lead to the
237
deprecation of the `#[target_feature]` attribute.
238
239
It is also unclear how any of this interacts with effect-polymorphism at this
240
-point, but we could support something like `impl const Trait` and `T: const Trait`:
+point, but we could _maybe_ support something like `impl const Trait` and `T:
241
+const Trait`:
242
243
```rust
244
impl #[target_feature(enable = "...")] Trait for Type { ... }
245
fn foo<T: #[target_feature(enable = "...")] Trait>(...) { ...}
246
```
247
+
248
+if all trait methods are `unsafe`; otherwise they can't have the
249
+`#[target_feature]` attribute.
250
0 commit comments