// run-pass // Test that `&mut T` implements `DerefMut` use std::ops::{Deref, DerefMut}; fn inc + DerefMut>(mut t: T) { *t += 1; } fn main() { let mut x: isize = 5; inc(&mut x); assert_eq!(x, 6); }