• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use cxx::{CxxString, UniquePtr};
2 
3 #[test]
4 #[should_panic = "called deref on a null UniquePtr<CxxString>"]
test_deref_null()5 fn test_deref_null() {
6     let unique_ptr = UniquePtr::<CxxString>::null();
7     let _: &CxxString = &unique_ptr;
8 }
9