Skip to content

Commit

Permalink
use current const trait syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtwco committed Nov 16, 2024
1 parent b8ea881 commit a703feb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions text/3729-sized-hierarchy.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,11 @@ traits `const`:
Or, in Rust syntax:

```rust
const trait Sized: ~const ValueSized {}
#![feature(const_trait_impl)]

const trait ValueSized: std::ptr::Pointee {}
#[const_trait] trait Sized: ~const ValueSized {}

#[const_trait] trait ValueSized: std::ptr::Pointee {}
```

`Pointee` was specified in [rfcs#2580][rfc_pointer_metadata_vtable] and is
Expand Down

0 comments on commit a703feb

Please sign in to comment.