blob: b7ff28b09930a8767f1da4a87a6e6cadecc2fdf1 [file] [log] [blame]
// bindgen-flags: -- -std=c++14
//
// https://github.com/rust-lang/rust-bindgen/issues/2036
template<typename T>
struct Foo {};
template<typename T>
Foo<T> foo{};
// Struct inside function
void f() {
struct Bar {
Bar() {}
};
foo<Bar>;
}
// Struct inside method
class Baz {
void f() {
struct Boo {
Boo() {}
};
foo<Boo>;
}
};