mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 11:24:24 +00:00
Fix tests
This commit is contained in:
parent
a1c060c8d0
commit
ef0a1b2e58
3 changed files with 25 additions and 18 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue