mirror of https://github.com/rust-lang/rust.git
Add regression test for issue #100878
This commit is contained in:
parent
77e7e88567
commit
ad05b32fee
|
@ -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