improve error message for const ty param mismatch
This commit is contained in:
parent
06c9c599ed
commit
69b43c209c
25 changed files with 194 additions and 275 deletions
|
@ -282,6 +282,14 @@ impl GenericArg<'_> {
|
|||
GenericArg::Const(_) => "constant",
|
||||
}
|
||||
}
|
||||
|
||||
pub fn short_descr(&self) -> &'static str {
|
||||
match self {
|
||||
GenericArg::Lifetime(_) => "lifetime",
|
||||
GenericArg::Type(_) => "type",
|
||||
GenericArg::Const(_) => "const",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, HashStable_Generic)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue