I was shocked by this story about two twelve year-old girls being raped by six men, as anyone would be.
Apparently, from what was said in court, one of the two girls had texted the men and set up the meeting and allegedly suggested having sex. She ended up being raped by five of them.
The age of consent in the UK is 16, so below that age a girl cannot legally give her consent to sex.
But further down in the article there was this quote:
"if the activities had taken place just four weeks later than they had, when the main girl would have turned 13, none of the defendants would have faced any criminal charges because of the defence provided by her actions."
In other words (it seemed to me) although at age 13 a girl is judged legally unable to give consent to sexual intercourse, it seems she can consent to being statutorily raped. 
Have I got this thoroughly mixed up?