Re-use error code for duplicate error
This commit is contained in:
parent
d6e1b20623
commit
30ff127036
3 changed files with 5 additions and 3 deletions
|
@ -113,7 +113,7 @@ pub struct DuplicateArg<'tcx> {
|
|||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(ty_utils_impl_trait_not_param)]
|
||||
#[diag(ty_utils_impl_trait_not_param, code = "E0792")]
|
||||
pub struct NotParam<'tcx> {
|
||||
pub arg: GenericArg<'tcx>,
|
||||
#[primary_span]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue