There is some misinformation in some of these posts - hensleya's is the best.
Can student loans be discharged in bankrupcty? Technically yes, but the bar for discharge is very high, which hensleya covers. And, since 2005, that high bar applies both to federal and private student loans.
So anyone who says they "can't be discharged" is sort of right for practical purposes, even if technically incorrect. There are a handful of cases where at least partial discharge has been granted, fwiw:
Oregon law school graduate beats back $50,000 in student loans | OregonLive.com
Though perhaps, the fact that the case is newsworthy helps point out just how rare they are. It's not quite the exception that proves the rule, but it's close. I'd have to look at the Douglas Wallace case hensleya noted, but my assumption would be that those are "private" student loans rather than federal.
Even if the judge in that case would have been right to rule that they were not dischargeable under bankruptcy rules, federal student loans can be discharged under a separate provision for Total & Permanent Disability, which has a much lower bar. Though that clause would not seem to apply at all in the case of the OP's friend.