about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-07-17 15:54:33 +0000
committerbors <bors@rust-lang.org>2025-07-17 15:54:33 +0000
commit9cd918bcbbc26deb005eb4e1bd9a445380195e56 (patch)
tree6465cc8c8b8760820ca29717e9fa4d981e5de8ce /src/doc/rustc-dev-guide
parentbf5e6cc7a7a7eb03e3ed9b875d76530eddd47d5f (diff)
parent69326878eeabb713e2d4a85215b87f18e498313c (diff)
downloadrust-9cd918bcbbc26deb005eb4e1bd9a445380195e56.tar.gz
rust-9cd918bcbbc26deb005eb4e1bd9a445380195e56.zip
Auto merge of #143879 - fee1-dead-contrib:push-lrlpoouyqqry, r=fmease
parse `const trait Trait`

r? oli-obk or anyone from project-const-traits

cc `@rust-lang/project-const-traits`
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/effects.md9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/doc/rustc-dev-guide/src/effects.md b/src/doc/rustc-dev-guide/src/effects.md
index c7aa2714668..87b0103a7bc 100644
--- a/src/doc/rustc-dev-guide/src/effects.md
+++ b/src/doc/rustc-dev-guide/src/effects.md
@@ -67,10 +67,8 @@ in [`wfcheck::check_impl`].
 Here's an example:
 
 ```rust
-#[const_trait]
-trait Bar {}
-#[const_trait]
-trait Foo: ~const Bar {}
+const trait Bar {}
+const trait Foo: ~const Bar {}
 // `const_conditions` contains `HostEffect(Self: Bar, maybe)`
 
 impl const Bar for () {}
@@ -85,8 +83,7 @@ predicates of the trait method, and we attempt to prove the predicates of the
 impl method. We do the same for `const_conditions`:
 
 ```rust
-#[const_trait]
-trait Foo {
+const trait Foo {
     fn hi<T: ~const Default>();
 }