Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 259 Bytes
// run-pass
#![allow(dead_code)]
// Test that wrapping an unsized struct in an enum which gets optimised does
// not ICE.
// pretty-expanded FIXME #23616
struct Str {
f: [u8]
}
fn main() {
let str: Option<&Str> = None;
let _ = str.is_some();
}
You can’t perform that action at this time.