File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ use parse::ClangItemParser;
99
99
/// ... |Wtf | ... | [T] |
100
100
/// ... |Qux | ... | [] |
101
101
/// ----+------+-----+----------------------+
102
- pub trait TemplateParameters {
102
+ pub trait TemplateParameters : Sized {
103
103
/// Get the set of `ItemId`s that make up this template declaration's free
104
104
/// template parameters.
105
105
///
@@ -108,8 +108,7 @@ pub trait TemplateParameters {
108
108
/// parameters. Of course, Rust does not allow generic parameters to be
109
109
/// anything but types, so we must treat them as opaque, and avoid
110
110
/// instantiating them.
111
- fn self_template_params ( & self , ctx : & BindgenContext )
112
- -> Vec < TypeId > ;
111
+ fn self_template_params ( & self , ctx : & BindgenContext ) -> Vec < TypeId > ;
113
112
114
113
/// Get the number of free template parameters this template declaration
115
114
/// has.
You can’t perform that action at this time.
0 commit comments