summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-17361.rs
blob: e97fc3afd1ccce3fbeb1db21a36a59a44519347b (plain)
1
2
3
4
5
6
7
8
9
// run-pass
// Test that astconv 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;
}