File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
crates/ide-assists/src/handlers Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -2500,6 +2500,40 @@ impl dep::Foo for Bar {
25002500 ${0:todo!()}
25012501 }
25022502}
2503+ "# ,
2504+ ) ;
2505+ }
2506+
2507+ #[ test]
2508+ fn regression_test_for_when_impl_for_unit ( ) {
2509+ check_assist (
2510+ add_missing_impl_members,
2511+ r#"
2512+ trait Test {
2513+ fn f<B>()
2514+ where
2515+ B: IntoIterator,
2516+ <B as IntoIterator>::Item: Copy;
2517+ }
2518+ impl Test for () {
2519+ $0
2520+ }
2521+ "# ,
2522+ r#"
2523+ trait Test {
2524+ fn f<B>()
2525+ where
2526+ B: IntoIterator,
2527+ <B as IntoIterator>::Item: Copy;
2528+ }
2529+ impl Test for () {
2530+ fn f<B>()
2531+ where
2532+ B: IntoIterator,
2533+ <B as IntoIterator>::Item: Copy {
2534+ ${0:todo!()}
2535+ }
2536+ }
25032537"# ,
25042538 ) ;
25052539 }
You can’t perform that action at this time.
0 commit comments