Skip to content

Commit 8a7df4f

Browse files
committed
Fix documentation typo
1 parent 5a16a25 commit 8a7df4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_mir/diagnostics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2388,14 +2388,14 @@ const fn foo() -> impl T { // error: `impl Trait` in const fn is unstable
23882388
To enable this feature on a nightly version of rustc, add the `const_fn`
23892389
feature flag:
23902390
2391-
```compile_fail,E0723
2391+
```
23922392
#![feature(const_fn)]
23932393
23942394
trait T {}
23952395
23962396
impl T for () {}
23972397
2398-
const fn foo() -> impl T { // error: `impl Trait` in const fn is unstable
2398+
const fn foo() -> impl T {
23992399
()
24002400
}
24012401
```

0 commit comments

Comments
 (0)