mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-20 02:00:38 +00:00
Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
9 lines
173 B
Rust
9 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;
|
|
}
|