From 519783adb3e7f1d32c2758ca4c111a58892b78cc Mon Sep 17 00:00:00 2001 From: varkor Date: Tue, 5 Feb 2019 22:03:01 +0100 Subject: [PATCH] Fix documentation typo --- src/librustc_mir/diagnostics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_mir/diagnostics.rs b/src/librustc_mir/diagnostics.rs index 084a6529908df..4df3004a9ada6 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 { () } ```