You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
261 B

#![allow(clippy::let_underscore_drop)]
use cxx::{CxxString, UniquePtr};
#[test]
#[should_panic = "called deref on a null UniquePtr<CxxString>"]
fn test_deref_null() {
let unique_ptr = UniquePtr::<CxxString>::null();
let _: &CxxString = &unique_ptr;
}