blob: 2e2bc64008a6b7a8a5ecb9a10252c46c7b7554b1 [file] [log] [blame] [edit]
//! regression test for <https://github.com/rust-lang/rust/issues/18353>
//@ run-pass
#![allow(dead_code)]
// Test that wrapping an unsized struct in an enum which gets optimised does
// not ICE.
struct Str {
f: [u8]
}
fn main() {
let str: Option<&Str> = None;
let _ = str.is_some();
}