about summary refs log tree commit diff
path: root/src/test/ui/span
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-09-23 04:29:15 +0200
committerGitHub <noreply@github.com>2022-09-23 04:29:15 +0200
commit5d7937de8cfeba357136bcd8b960f3d3984fe19a (patch)
treefd63a12674b7bcfbc7696c84e7538b201604be07 /src/test/ui/span
parente7119a0300b87a3d670408ee8e847c6821b3ae80 (diff)
parentd0a07495be4906db5028a605f650aafeabee1879 (diff)
downloadrust-5d7937de8cfeba357136bcd8b960f3d3984fe19a.tar.gz
rust-5d7937de8cfeba357136bcd8b960f3d3984fe19a.zip
Rollup merge of #100734 - ComputerDruid:afit_feature, r=compiler-errors
Split out async_fn_in_trait into a separate feature

PR #101224 added support for async fn in trait desuraging behind the `return_position_impl_trait_in_trait` feature.

Split this out so that it's behind its own feature gate, since async fn in trait doesn't need to follow the same stabilization schedule.
Diffstat (limited to 'src/test/ui/span')
-rw-r--r--src/test/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-93117.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-93117.stderr b/src/test/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-93117.stderr
index 3814c568e72..2c1fa7b36b6 100644
--- a/src/test/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-93117.stderr
+++ b/src/test/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-93117.stderr
@@ -51,7 +51,7 @@ LL | trait C{async fn new(val: T) {}
    = note: `async` trait functions are not currently supported
    = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
    = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
-   = help: add `#![feature(return_position_impl_trait_in_trait)]` to the crate attributes to enable
+   = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
 
 warning: changes to closure capture in Rust 2021 will affect drop order
   --> $DIR/drop-location-span-error-rust-2021-incompatible-closure-captures-93117.rs:6:57