We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a16a25 commit 8a7df4fCopy full SHA for 8a7df4f
src/librustc_mir/diagnostics.rs
@@ -2388,14 +2388,14 @@ const fn foo() -> impl T { // error: `impl Trait` in const fn is unstable
2388
To enable this feature on a nightly version of rustc, add the `const_fn`
2389
feature flag:
2390
2391
-```compile_fail,E0723
+```
2392
#![feature(const_fn)]
2393
2394
trait T {}
2395
2396
impl T for () {}
2397
2398
-const fn foo() -> impl T { // error: `impl Trait` in const fn is unstable
+const fn foo() -> impl T {
2399
()
2400
}
2401
```
0 commit comments