Dating a college professor.

So I was wondering how people feel about individuals dating their college professor. I know a girl who is dating her professor. They are only 7 years apart, but I was just curious what others thought about it. 
Note: it is against most university rules. At least it is against the rules at my university.