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.
1 parent d3d13a8 commit a0c70caCopy full SHA for a0c70ca
src/lib.rs
@@ -25,7 +25,9 @@
25
//! This demonstrates how one can write a polymorphic `const fn`
26
//! (as of 2025-07-20, trait methods can't be called in const fns on stable)
27
//!
28
-//! ```rust
+//! (this example requires Rust 1.61.0, since it uses trait bounds in const)
29
+#![cfg_attr(not(feature = "rust_1_61"), doc = "```ignore")]
30
+#![cfg_attr(feature = "rust_1_61", doc = "```rust")]
31
//! use typewit::{HasTypeWitness, TypeEq};
32
33
//! const VALS: [&str; 6] = [
0 commit comments