rust/tests/ui/issues/issue-17361.rs

10 lines
206 B
Rust

//@ run-pass
// Test that HIR ty lowering doesn't forget about mutability of `&mut str`.
//@ pretty-expanded FIXME #23616
fn main() {
fn foo<T: ?Sized>(_: &mut T) {}
let _f: fn(&mut str) = foo;
}