summaryrefslogtreecommitdiff
path: root/libbindgen/tests/headers/replace_template_alias.hpp
blob: b0648994e832839fcd03707f1a99f0076ef15632 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// bindgen-flags: -- --std=c++14

namespace JS {
namespace detail {

/// Notice how this doesn't use T.
template <typename T>
using MaybeWrapped = int;

}

template <typename T>
class Rooted {
    detail::MaybeWrapped<T> ptr;
};

}

/// But the replacement type does use T!
///
/// <div rustbindgen replaces="JS_detail_MaybeWrapped" />
template <typename T>
using replaces_MaybeWrapped = T;