var t = db.sameminmax;
t.drop();
t.ensureIndex({a:1});
assert.throws(function() {t.find().min({a:1}).max({a:1}).toArray()});
Using the same value for min and max will throw an error in 2.6 while in 2.4 it would succeed but never return any documents.