]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/const-fn-with-const-param.rs
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.git] / src / test / ui / const-generics / const-fn-with-const-param.rs
index bbc55815e9a208b77fe4cd906f49f21f470257d4..add1290b1d9758a6fcb0235d686c4d1d04ab008e 100644 (file)
@@ -1,6 +1,10 @@
+// Checks that `const fn` with const params can be used.
 // run-pass
-#![feature(const_generics)]
-//~^ WARN the feature `const_generics` is incomplete
+// revisions: full min
+
+#![cfg_attr(full, feature(const_generics))]
+#![cfg_attr(full, allow(incomplete_features))]
+#![cfg_attr(min, feature(min_const_generics))]
 
 const fn const_u32_identity<const X: u32>() -> u32 {
     X