File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,8 @@ and `const` modifiers on `impl` blocks.
211
211
# Unresolved questions
212
212
[ unresolved-questions ] : #unresolved-questions
213
213
214
+ ## Runtime uses don't have ` const ` restrictions?
215
+
214
216
Should ` impl const ` blocks additionally generate impls that are not const if any generic
215
217
parameters are not const?
216
218
@@ -224,7 +226,7 @@ impl<T: Add> const Add for Foo<T> {
224
226
}
225
227
```
226
228
227
- would allow calling ` Foo(String::new( )) + Foo(String::new( )) ` even though that is (at the time
229
+ would allow calling ` Foo(String::from("foo" )) + Foo(String::from("bar" )) ` even though that is (at the time
228
230
of writing this RFC) most definitely not const, because ` String ` only has an ` impl Add for String `
229
231
and not an ` impl const Add for String ` .
230
232
You can’t perform that action at this time.
0 commit comments