diff options
| author | bors <bors@rust-lang.org> | 2024-02-08 10:05:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-08 10:05:39 +0000 |
| commit | af88f7db51f6f2a1472f9279d7c7e7c822afff77 (patch) | |
| tree | d3c047d15985d02a3d7b69c47df8af5bbab4bfd9 /tests/ui/enum/enum-and-module-in-same-scope.rs | |
| parent | 81bef0b0ba78f9b7bb08beb0575e245fbe18674a (diff) | |
| parent | eab2adb6607d94fd0c70de93abf546ae9282afaa (diff) | |
| download | rust-af88f7db51f6f2a1472f9279d7c7e7c822afff77.tar.gz rust-af88f7db51f6f2a1472f9279d7c7e7c822afff77.zip | |
Auto merge of #120550 - oli-obk:track_errors8, r=estebank
Continue to borrowck even if there were previous errors but only from the perspective of the whole compiler. Individual items should not get borrowcked if their MIR is tainted by errors. r? `@estebank` `@nnethercote`
Diffstat (limited to 'tests/ui/enum/enum-and-module-in-same-scope.rs')
| -rw-r--r-- | tests/ui/enum/enum-and-module-in-same-scope.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/enum/enum-and-module-in-same-scope.rs b/tests/ui/enum/enum-and-module-in-same-scope.rs index cc6e199bd7c..8e69c89d792 100644 --- a/tests/ui/enum/enum-and-module-in-same-scope.rs +++ b/tests/ui/enum/enum-and-module-in-same-scope.rs @@ -5,6 +5,7 @@ enum Foo { mod Foo { //~ ERROR the name `Foo` is defined multiple times pub static X: isize = 42; fn f() { f() } // Check that this does not result in a resolution error + //~^ WARN cannot return without recursing } fn main() {} |
