diff options
Diffstat (limited to 'tests/ui/inline-const/break-inside-inline-const-issue-128604.rs')
| -rw-r--r-- | tests/ui/inline-const/break-inside-inline-const-issue-128604.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/inline-const/break-inside-inline-const-issue-128604.rs b/tests/ui/inline-const/break-inside-inline-const-issue-128604.rs index 648c9582510..a9795d1569c 100644 --- a/tests/ui/inline-const/break-inside-inline-const-issue-128604.rs +++ b/tests/ui/inline-const/break-inside-inline-const-issue-128604.rs @@ -15,4 +15,11 @@ fn main() { break; //~^ ERROR `break` outside of a loop or labeled block }; + + { + const { + break; + //~^ ERROR `break` outside of a loop or labeled block + } + } } |
