Sign in
rust
/
rust
/
refs/heads/try-perf
/
.
/
tests
/
ui
/
dst
/
unsized-str-mutability.rs
blob: d84fa001fd679f40061e42c0c313a0491544a212 [
file
] [
log
] [
blame
] [
edit
]
//! regression test for <https://github.com/rust-lang/rust/issues/17361>
//! Test that HIR ty lowering doesn't forget about mutability of `&mut str`.
//@ run-pass
fn
main
()
{
fn
foo
<
T
:
?
Sized
>(
_
:
&
mut
T
)
{}
let
_f
:
fn
(&
mut
str
)
=
foo
;
}