File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ use crate::marker::Destruct;
33/// Struct representing a closure with owned data.
44///
55/// Example:
6- /// ```rust
7- /// use const_closure::ConstFnOnceClosure;
6+ /// ```no_build
7+ /// use crate:: const_closure::ConstFnOnceClosure;
88/// const fn imp(state: i32, (arg,): (i32,)) -> i32 {
99/// state + arg
1010/// }
5151/// Struct representing a closure with mutably borrowed data.
5252///
5353/// Example:
54- /// ```rust
54+ /// ```no_build
5555/// #![feature(const_mut_refs)]
56- /// use const_closure::ConstFnMutClosure;
56+ /// use crate:: const_closure::ConstFnMutClosure;
5757/// const fn imp(state: &mut i32, (arg,): (i32,)) -> i32 {
5858/// *state += arg;
5959/// *state
@@ -110,8 +110,8 @@ where
110110/// Struct representing a closure with borrowed data.
111111///
112112/// Example:
113- /// ```rust
114- /// use const_closure::ConstFnClosure;
113+ /// ```no_build
114+ /// use crate:: const_closure::ConstFnClosure;
115115///
116116/// const fn imp(state: &i32, (arg,): (i32,)) -> i32 {
117117/// *state + arg
You can’t perform that action at this time.
0 commit comments