module Regexp::Syntax

def warn_if_future_version(const_name)

def warn_if_future_version(const_name)
  return if comparable_version(const_name) < comparable_version('4.0.0')
  warn('This library has only been tested up to Ruby 3.x, '\
       "but you are running with #{const_get(const_name).inspect}")
end