    # File lib/ffi/struct.rb, line 233
          def find_field_type(type, mod = enclosing_module)
            if type.kind_of?(Class) && type < Struct
              FFI::Type::Struct.new(type)

            elsif type.kind_of?(Class) && type < FFI::StructLayout::Field
              type

            elsif type.kind_of?(::Array)
              FFI::Type::Array.new(find_field_type(type[0]), type[1])

            else
              find_type(type, mod)
            end
          end