// bindgen-flags: --enable-cxx-namespaces --allowlist-type StaticRefPtr --opaque-type 'JS::Rooted' -- -std=c++14 namespace JS { template class Rooted { using ElementType = T; }; } class c { JS::Rooted b; }; class B { c a; }; template class StaticRefPtr {}; struct { StaticRefPtr d; } e;