diff options
Diffstat (limited to 'tests/ui/closures/2229_closure_analysis/migrations/old_name.rs')
-rw-r--r-- | tests/ui/closures/2229_closure_analysis/migrations/old_name.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/closures/2229_closure_analysis/migrations/old_name.rs b/tests/ui/closures/2229_closure_analysis/migrations/old_name.rs new file mode 100644 index 000000000..16e3cca7b --- /dev/null +++ b/tests/ui/closures/2229_closure_analysis/migrations/old_name.rs @@ -0,0 +1,9 @@ +// check-pass + +// Ensure that the old name for `rust_2021_incompatible_closure_captures` is still +// accepted by the compiler + +#![allow(disjoint_capture_migration)] +//~^ WARN lint `disjoint_capture_migration` has been renamed + +fn main() {} |