diff options
| author | bors <bors@rust-lang.org> | 2024-02-25 19:11:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-25 19:11:06 +0000 |
| commit | b0d3e04ca9f848c5fce3ad4bab6153009be06db0 (patch) | |
| tree | 8f2e45ec2a98d07fd72baa0c2c275de5c030138d /tests/ui/consts | |
| parent | 8c0b1fcd2914caaf1c3a1071028fb74b70c519e9 (diff) | |
| parent | 63469ab762b5710b07418e61ff758bd48d0f8b3e (diff) | |
| download | rust-b0d3e04ca9f848c5fce3ad4bab6153009be06db0.tar.gz rust-b0d3e04ca9f848c5fce3ad4bab6153009be06db0.zip | |
Auto merge of #120393 - Urgau:rfc3373-non-local-defs, r=WaffleLapkin
Implement RFC 3373: Avoid non-local definitions in functions This PR implements [RFC 3373: Avoid non-local definitions in functions](https://github.com/rust-lang/rust/issues/120363).
Diffstat (limited to 'tests/ui/consts')
| -rw-r--r-- | tests/ui/consts/const_in_pattern/accept_structural.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/consts/const_in_pattern/accept_structural.rs b/tests/ui/consts/const_in_pattern/accept_structural.rs index 09142c56157..31d3b6e7331 100644 --- a/tests/ui/consts/const_in_pattern/accept_structural.rs +++ b/tests/ui/consts/const_in_pattern/accept_structural.rs @@ -1,5 +1,6 @@ //@ run-pass +#![allow(non_local_definitions)] #![warn(indirect_structural_match)] // This test is checking our logic for structural match checking by enumerating |
