File tree 1 file changed +6
-6
lines changed
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;
3
3
/// Struct representing a closure with owned data.
4
4
///
5
5
/// Example:
6
- /// ```rust
7
- /// use const_closure::ConstFnOnceClosure;
6
+ /// ```no_build
7
+ /// use crate:: const_closure::ConstFnOnceClosure;
8
8
/// const fn imp(state: i32, (arg,): (i32,)) -> i32 {
9
9
/// state + arg
10
10
/// }
51
51
/// Struct representing a closure with mutably borrowed data.
52
52
///
53
53
/// Example:
54
- /// ```rust
54
+ /// ```no_build
55
55
/// #![feature(const_mut_refs)]
56
- /// use const_closure::ConstFnMutClosure;
56
+ /// use crate:: const_closure::ConstFnMutClosure;
57
57
/// const fn imp(state: &mut i32, (arg,): (i32,)) -> i32 {
58
58
/// *state += arg;
59
59
/// *state
@@ -110,8 +110,8 @@ where
110
110
/// Struct representing a closure with borrowed data.
111
111
///
112
112
/// Example:
113
- /// ```rust
114
- /// use const_closure::ConstFnClosure;
113
+ /// ```no_build
114
+ /// use crate:: const_closure::ConstFnClosure;
115
115
///
116
116
/// const fn imp(state: &i32, (arg,): (i32,)) -> i32 {
117
117
/// *state + arg
You can’t perform that action at this time.
0 commit comments