Parse, store and print type parameter kind constraints.
This commit is contained in:
parent
1836f59d9a
commit
acac6abc85
5 changed files with 49 additions and 7 deletions
|
|
@ -31,7 +31,7 @@ type def_id = {crate: crate_num, node: node_id};
|
|||
const local_crate: crate_num = 0;
|
||||
fn local_def(id: node_id) -> def_id { ret {crate: local_crate, node: id}; }
|
||||
|
||||
type ty_param = ident;
|
||||
type ty_param = {ident: ident, kind: kind};
|
||||
|
||||
tag def {
|
||||
def_fn(def_id, purity);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue