diff options
| author | varkor <github@varkor.com> | 2019-02-05 22:03:01 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-02-14 15:04:37 +0000 |
| commit | 519783adb3e7f1d32c2758ca4c111a58892b78cc (patch) | |
| tree | 3adc0a284a7a55a5718a98027f7e95c65f54a5f7 | |
| parent | feb3408f112cb362e15f5a33bdcc1e01724244ee (diff) | |
| download | rust-519783adb3e7f1d32c2758ca4c111a58892b78cc.tar.gz rust-519783adb3e7f1d32c2758ca4c111a58892b78cc.zip | |
Fix documentation typo
| -rw-r--r-- | src/librustc_mir/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_mir/diagnostics.rs b/src/librustc_mir/diagnostics.rs index 084a6529908..4df3004a9ad 100644 --- a/src/librustc_mir/diagnostics.rs +++ b/src/librustc_mir/diagnostics.rs @@ -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 { () } ``` |
