mirror of https://github.com/rust-lang/rust.git
Rollup merge of #102181 - inquisitivecrystal:issue-100878-test, r=Mark-Simulacrum
Add regression test This adds a regression test for issue #100878. Closes #100878.
This commit is contained in:
commit
0857ddeed6
|
@ -0,0 +1,8 @@
|
|||
// This checks that the const-eval ICE in issue #100878 does not recur.
|
||||
//
|
||||
// build-pass
|
||||
pub fn bitshift_data(data: [u8; 1]) -> u8 {
|
||||
data[0] << 8
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Reference in New Issue