about summary refs log tree commit diff
path: root/tests/ui/issues/issue-18353.rs
blob: 378caa9f36976bb6255038d68439aa5541268f38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ 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();
}