What does Ball or player touching the referee mean?

Ball or player touching the referee meaning in Sports Dictionary

As long as the referee thinks no benefit was gained, after that play will continue. If he deems an edge has-been gained, he then will order a scrummage. (recreation: Rugby Union)