summaryrefslogtreecommitdiffstats
path: root/tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.rs')
-rw-r--r--tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.rs b/tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.rs
index a776e5089..a9d678c1e 100644
--- a/tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.rs
+++ b/tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.rs
@@ -1,4 +1,4 @@
-// compile-flags -Wrust-2021-incompatible-closure-captures
+#![warn(rust_2021_incompatible_closure_captures)]
fn main() {}
@@ -9,7 +9,7 @@ impl Numberer {
//~^ ERROR `async fn` is not permitted in Rust 2015
interval: Duration,
//~^ ERROR cannot find type `Duration` in this scope
- ) -> Numberer {
+ ) -> Numberer { //~WARN: changes to closure capture in Rust 2021
Numberer {}
}
}