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.
core::marker::ConstParamTy
1 parent a8b5039 commit fce7292Copy full SHA for fce7292
core/src/marker.rs
@@ -991,6 +991,14 @@ pub trait PointerLike {}
991
#[rustc_on_unimplemented(message = "`{Self}` can't be used as a const parameter type")]
992
pub trait ConstParamTy: StructuralEq {}
993
994
+/// Derive macro generating an impl of the trait `Copy`.
995
+#[rustc_builtin_macro]
996
+#[unstable(feature = "adt_const_params", issue = "95174")]
997
+#[cfg(not(bootstrap))]
998
+pub macro ConstParamTy($item:item) {
999
+ /* compiler built-in */
1000
+}
1001
+
1002
// FIXME(generic_const_parameter_types): handle `ty::FnDef`/`ty::Closure`
1003
// FIXME(generic_const_parameter_types): handle `ty::Tuple`
1004
marker_impls! {
0 commit comments