Fix tests

This commit is contained in:
Aleksei Sidorov 2020-09-04 17:55:27 +03:00
parent a1c060c8d0
commit ef0a1b2e58
3 changed files with 25 additions and 18 deletions

View file

@ -294,7 +294,7 @@ pub fn param_list(pats: impl IntoIterator<Item = ast::Param>) -> ast::ParamList
ast_from_text(&format!("fn f({}) {{ }}", args))
}
pub fn generic_param(name: String, ty: Option<String>) -> ast::GenericParam {
pub fn generic_param(name: String, ty: Option<ast::TypeBoundList>) -> ast::GenericParam {
let bound = match ty {
Some(it) => format!(": {}", it),
None => String::new(),