about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2019-02-05 22:03:01 +0100
committervarkor <github@varkor.com>2019-02-14 15:04:37 +0000
commit519783adb3e7f1d32c2758ca4c111a58892b78cc (patch)
tree3adc0a284a7a55a5718a98027f7e95c65f54a5f7 /src
parentfeb3408f112cb362e15f5a33bdcc1e01724244ee (diff)
downloadrust-519783adb3e7f1d32c2758ca4c111a58892b78cc.tar.gz
rust-519783adb3e7f1d32c2758ca4c111a58892b78cc.zip
Fix documentation typo
Diffstat (limited to 'src')
-rw-r--r--src/librustc_mir/diagnostics.rs4
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 {
     ()
 }
 ```