Skip to content

Commit a0c70ca

Browse files
committed
Fix 2
1 parent d3d13a8 commit a0c70ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
//! This demonstrates how one can write a polymorphic `const fn`
2626
//! (as of 2025-07-20, trait methods can't be called in const fns on stable)
2727
//!
28-
//! ```rust
28+
//! (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")]
2931
//! use typewit::{HasTypeWitness, TypeEq};
3032
//!
3133
//! const VALS: [&str; 6] = [

0 commit comments

Comments
 (0)