Fix documentation typo

This commit is contained in:
varkor 2019-02-05 22:03:01 +01:00
parent feb3408f11
commit 519783adb3

View file

@ -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` To enable this feature on a nightly version of rustc, add the `const_fn`
feature flag: feature flag:
```compile_fail,E0723 ```
#![feature(const_fn)] #![feature(const_fn)]
trait T {} trait T {}
impl T for () {} impl T for () {}
const fn foo() -> impl T { // error: `impl Trait` in const fn is unstable const fn foo() -> impl T {
() ()
} }
``` ```