diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-04-09 09:42:57 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-04-21 16:14:43 +0000 |
| commit | ed7e50e08b67eee7a6d1f4da897f204e3e70c6a0 (patch) | |
| tree | 6beb52788d114b382b632145d37f4a3894f96666 /tests/ui/consts/const-eval | |
| parent | 409661936f929b254ffc8adb644cf35d1f9765c4 (diff) | |
| download | rust-ed7e50e08b67eee7a6d1f4da897f204e3e70c6a0.tar.gz rust-ed7e50e08b67eee7a6d1f4da897f204e3e70c6a0.zip | |
Ensure mir_drops_elaborated_and_const_checked when requiring codegen.
Diffstat (limited to 'tests/ui/consts/const-eval')
| -rw-r--r-- | tests/ui/consts/const-eval/issue-100878.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/consts/const-eval/issue-100878.rs b/tests/ui/consts/const-eval/issue-100878.rs index 353ce505035..bd56f854c8b 100644 --- a/tests/ui/consts/const-eval/issue-100878.rs +++ b/tests/ui/consts/const-eval/issue-100878.rs @@ -1,6 +1,8 @@ // This checks that the const-eval ICE in issue #100878 does not recur. // // build-pass + +#[allow(arithmetic_overflow)] pub fn bitshift_data(data: [u8; 1]) -> u8 { data[0] << 8 } |
