Add regression test for issue #100878
This commit is contained in:
parent
77e7e88567
commit
ad05b32fee
8
src/test/ui/consts/const-eval/issue-100878.rs
Normal file
8
src/test/ui/consts/const-eval/issue-100878.rs
Normal file
@ -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
Block a user