Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
8 lines
173 B
Rust
8 lines
173 B
Rust
//@ run-pass
|
|
// Test that HIR ty lowering doesn't forget about mutability of `&mut str`.
|
|
|
|
|
|
fn main() {
|
|
fn foo<T: ?Sized>(_: &mut T) {}
|
|
let _f: fn(&mut str) = foo;
|
|
}
|