File tree 2 files changed +20
-1
lines changed
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ mod handlers {
344
344
unqualify_method_call:: unqualify_method_call,
345
345
wrap_return_type_in_result:: wrap_return_type_in_result,
346
346
wrap_unwrap_cfg_attr:: wrap_unwrap_cfg_attr,
347
-
347
+
348
348
// These are manually sorted for better priorities. By default,
349
349
// priority is determined by the size of the target range (smaller
350
350
// target wins). If the ranges are equal, position in this list is
Original file line number Diff line number Diff line change @@ -3151,3 +3151,22 @@ fn foo() -> Result<i32, ${0:_}> { Ok(42i32) }
3151
3151
"##### ,
3152
3152
)
3153
3153
}
3154
+
3155
+ #[ test]
3156
+ fn doctest_wrap_unwrap_cfg_attr ( ) {
3157
+ check_doc_test (
3158
+ "wrap_unwrap_cfg_attr" ,
3159
+ r#####"
3160
+ #[derive$0(Debug)]
3161
+ struct S {
3162
+ field: i32
3163
+ }
3164
+ "##### ,
3165
+ r#####"
3166
+ #[cfg_attr($0, derive(Debug))]
3167
+ struct S {
3168
+ field: i32
3169
+ }
3170
+ "##### ,
3171
+ )
3172
+ }
You can’t perform that action at this time.
0 commit comments