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