Skip to content

Commit 73e98c4

Browse files
committed
Remove some accidental (const) markers in impls
1 parent e18f475 commit 73e98c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-const-trait-impls.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl const Default for () {
2626
struct Thing<T>(T);
2727

2828
impl<T: (const) Default> const Default for Thing<T> {
29-
(const) fn default() -> Self { Self(T::default()) }
29+
const fn default() -> Self { Self(T::default()) }
3030
}
3131

3232
const fn default<T: (const) Default>() -> T {
@@ -335,7 +335,7 @@ generates
335335

336336
```rust
337337
impl<T: (const) PartialEq> const PartialEq for MyStruct<T> {
338-
(const) fn eq(&self, other: &Rhs) -> bool {
338+
const fn eq(&self, other: &Rhs) -> bool {
339339
self.0 == other.0
340340
}
341341
}

0 commit comments

Comments
 (0)