//@ run-pass // Don't fail if we encounter a NonNull where T is an unsized type use std::ptr::NonNull; fn main() { let mut a = [0u8; 5]; let b: Option> = Some(NonNull::from(&mut a)); match b { Some(_) => println!("Got `Some`"), None => panic!("Unexpected `None`"), } }