1
Fork 0

Re-use error code for duplicate error

This commit is contained in:
Oli Scherer 2023-06-16 20:20:39 +00:00
parent d6e1b20623
commit 30ff127036
3 changed files with 5 additions and 3 deletions

View file

@ -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]