diff --git a/googlemock/test/gmock-actions_test.cc b/googlemock/test/gmock-actions_test.cc
index 976f56d7c59f551fe774d0372c30fdbc092e416a..ccfb5197bc47c8cc06097aa0781d5e1083031c52 100644
--- a/googlemock/test/gmock-actions_test.cc
+++ b/googlemock/test/gmock-actions_test.cc
@@ -1146,8 +1146,6 @@ TEST(WithArgsTest, ReturnReference) {
 }
 
 TEST(WithArgsTest, InnerActionWithConversion) {
-  struct Base {};
-  struct Derived : Base {};
   Action<Derived*()> inner = [] { return nullptr; };
   Action<Base*(double)> a = testing::WithoutArgs(inner);
   EXPECT_EQ(nullptr, a.Perform(std::make_tuple(1.1)));