diff options
| author | Boxy <supbscripter@gmail.com> | 2024-07-14 12:50:41 +0100 |
|---|---|---|
| committer | Boxy <rust@boxyuwu.dev> | 2024-07-17 11:01:29 +0100 |
| commit | 42cc42b942088a94d95bc5169724d77429f20582 (patch) | |
| tree | a965ba4940888954b2524ec4446bbf6dc290aafb /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | cb12b52f160c633551bd6e5be8d4c6e2e8660950 (diff) | |
| download | rust-42cc42b942088a94d95bc5169724d77429f20582.tar.gz rust-42cc42b942088a94d95bc5169724d77429f20582.zip | |
Forbid `!Sized` types and references
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 0ee87a13e9e..7f8aefd564d 100644 --- a/compiler/rustc_hir_analysis/src/errors.rs +++ b/compiler/rustc_hir_analysis/src/errors.rs @@ -279,6 +279,14 @@ pub struct CopyImplOnNonAdt { } #[derive(Diagnostic)] +#[diag(hir_analysis_const_param_ty_impl_on_unsized)] +pub struct ConstParamTyImplOnUnsized { + #[primary_span] + #[label] + pub span: Span, +} + +#[derive(Diagnostic)] #[diag(hir_analysis_const_param_ty_impl_on_non_adt)] pub struct ConstParamTyImplOnNonAdt { #[primary_span] |
