mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
16 lines
261 B
Rust
16 lines
261 B
Rust
//@ 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();
|
|
}
|