Forbid !Sized
types and references
This commit is contained in:
parent
cb12b52f16
commit
42cc42b942
7 changed files with 167 additions and 39 deletions
|
@ -78,6 +78,10 @@ hir_analysis_const_impl_for_non_const_trait =
|
|||
.note = marking a trait with `#[const_trait]` ensures all default method bodies are `const`
|
||||
.adding = adding a non-const method body in the future would be a breaking change
|
||||
|
||||
hir_analysis_const_param_ty_impl_on_unsized =
|
||||
the trait `ConstParamTy` may not be implemented for this type
|
||||
.label = type is not `Sized`
|
||||
|
||||
hir_analysis_const_param_ty_impl_on_non_adt =
|
||||
the trait `ConstParamTy` may not be implemented for this type
|
||||
.label = type is not a structure or enumeration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue