@@ -2388,14 +2388,14 @@ const fn foo() -> impl T { // error: `impl Trait` in const fn is unstable |
|
|
2388 |
2388 |
To enable this feature on a nightly version of rustc, add the `const_fn` |
2389 |
2389 |
feature flag: |
2390 |
2390 |
|
2391 |
|
-```compile_fail,E0723 |
|
2391 |
+``` |
2392 |
2392 |
#![feature(const_fn)] |
2393 |
2393 |
|
2394 |
2394 |
trait T {} |
2395 |
2395 |
|
2396 |
2396 |
impl T for () {} |
2397 |
2397 |
|
2398 |
|
-const fn foo() -> impl T { // error: `impl Trait` in const fn is unstable |
|
2398 |
+const fn foo() -> impl T { |
2399 |
2399 |
() |
2400 |
2400 |
} |
2401 |
2401 |
``` |