Skip to content

Commit

Permalink
Fix documentation typo
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Feb 14, 2019
1 parent feb3408 commit 519783a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_mir/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2388,14 +2388,14 @@ const fn foo() -> impl T { // error: `impl Trait` in const fn is unstable
To enable this feature on a nightly version of rustc, add the `const_fn`
feature flag:
```compile_fail,E0723
```
#![feature(const_fn)]
trait T {}
impl T for () {}
const fn foo() -> impl T { // error: `impl Trait` in const fn is unstable
const fn foo() -> impl T {
()
}
```
Expand Down

0 comments on commit 519783a

Please sign in to comment.