@@ -64,6 +64,8 @@ ast_passes_const_and_coroutine = functions cannot be both `const` and `{$corouti
6464
6565ast_passes_const_bound_trait_object = const trait bounds are not allowed in trait object types
6666
67+ ast_passes_const_in_trait = `const fn` in traits is unstable
68+
6769ast_passes_const_without_body =
6870 free constant item without body
6971 .suggestion = provide a definition for the constant
@@ -232,17 +234,17 @@ ast_passes_static_without_body =
232234 free static item without body
233235 .suggestion = provide a definition for the static
234236
235- ast_passes_tilde_const_disallowed = `~ const` is not allowed here
236- .closure = closures cannot have `~ const` trait bounds
237- .function = this function is not `const`, so it cannot have `~ const` trait bounds
238- .trait = this trait is not a `#[const_trait]`, so it cannot have `~ const` trait bounds
239- .trait_impl = this impl is not `const`, so it cannot have `~ const` trait bounds
240- .impl = inherent impls cannot have `~ const` trait bounds
241- .trait_assoc_ty = associated types in non-`#[const_trait]` traits cannot have `~ const` trait bounds
242- .trait_impl_assoc_ty = associated types in non-const impls cannot have `~ const` trait bounds
243- .inherent_assoc_ty = inherent associated types cannot have `~ const` trait bounds
244- .object = trait objects cannot have `~ const` trait bounds
245- .item = this item cannot have `~ const` trait bounds
237+ ast_passes_tilde_const_disallowed = `[ const] ` is not allowed here
238+ .closure = closures cannot have `[ const] ` trait bounds
239+ .function = this function is not `const`, so it cannot have `[ const] ` trait bounds
240+ .trait = this trait is not a `#[const_trait]`, so it cannot have `[ const] ` trait bounds
241+ .trait_impl = this impl is not `const`, so it cannot have `[ const] ` trait bounds
242+ .impl = inherent impls cannot have `[ const] ` trait bounds
243+ .trait_assoc_ty = associated types in non-`#[const_trait]` traits cannot have `[ const] ` trait bounds
244+ .trait_impl_assoc_ty = associated types in non-const impls cannot have `[ const] ` trait bounds
245+ .inherent_assoc_ty = inherent associated types cannot have `[ const] ` trait bounds
246+ .object = trait objects cannot have `[ const] ` trait bounds
247+ .item = this item cannot have `[ const] ` trait bounds
246248
247249ast_passes_trait_fn_const =
248250 functions in { $in_impl ->
0 commit comments