diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-02-17 13:44:35 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-04-27 15:46:21 +0000 |
| commit | 9a716dafbe3deb97091c5e511c2d893e1f325b07 (patch) | |
| tree | 54b22f959cd04e39669f17027ea2505e9ae128e3 /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | 518d348f873ac5df4ca43b36145e5556138adad3 (diff) | |
| download | rust-9a716dafbe3deb97091c5e511c2d893e1f325b07.tar.gz rust-9a716dafbe3deb97091c5e511c2d893e1f325b07.zip | |
Add a `ConstParamTy` trait
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/errors.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_hir_analysis/src/errors.rs b/compiler/rustc_hir_analysis/src/errors.rs index 2a3a683489d..8dcf3b1670d 100644 --- a/compiler/rustc_hir_analysis/src/errors.rs +++ b/compiler/rustc_hir_analysis/src/errors.rs @@ -108,6 +108,14 @@ pub struct CopyImplOnNonAdt { } #[derive(Diagnostic)] +#[diag(hir_analysis_const_param_ty_impl_on_non_adt)] +pub struct ConstParamTyImplOnNonAdt { + #[primary_span] + #[label] + pub span: Span, +} + +#[derive(Diagnostic)] #[diag(hir_analysis_trait_object_declared_with_no_traits, code = "E0224")] pub struct TraitObjectDeclaredWithNoTraits { #[primary_span] |
