# File lib/rspec/matchers/eql.rb, line 11
    def eql(expected)
      Matcher.new :eql, expected do |_expected_|

        diffable

        match do |actual|
          actual.eql?(_expected_)
        end

        failure_message_for_should do |actual|
          "\nexpected \#{_expected_.inspect}\ngot \#{actual.inspect}\n\n(compared using eql?)\n"
        end

        failure_message_for_should_not do |actual|
          "\nexpected \#{actual.inspect} not to equal \#{_expected_.inspect}\n\n(compared using eql?)\n"
        end
      end
    end