2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2024-02-11 09:22:52 +01:00
|
|
|
// Test that HIR ty lowering doesn't forget about mutability of `&mut str`.
|
2014-10-28 00:03:02 -07:00
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2014-10-28 00:03:02 -07:00
|
|
|
fn main() {
|
2014-12-24 20:05:30 +13:00
|
|
|
fn foo<T: ?Sized>(_: &mut T) {}
|
2014-10-28 00:03:02 -07:00
|
|
|
let _f: fn(&mut str) = foo;
|
|
|
|
}
|