blob: 378caa9f36976bb6255038d68439aa5541268f38 [file] [log] [blame]
//@ 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();
}