We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f29330 + fce7292 commit 48bd87aCopy full SHA for 48bd87a
core/src/marker.rs
@@ -986,6 +986,14 @@ pub trait PointerLike {}
986
#[rustc_on_unimplemented(message = "`{Self}` can't be used as a const parameter type")]
987
pub trait ConstParamTy: StructuralEq {}
988
989
+/// Derive macro generating an impl of the trait `Copy`.
990
+#[rustc_builtin_macro]
991
+#[unstable(feature = "adt_const_params", issue = "95174")]
992
+#[cfg(not(bootstrap))]
993
+pub macro ConstParamTy($item:item) {
994
+ /* compiler built-in */
995
+}
996
+
997
// FIXME(generic_const_parameter_types): handle `ty::FnDef`/`ty::Closure`
998
// FIXME(generic_const_parameter_types): handle `ty::Tuple`
999
marker_impls! {
0 commit comments