Skip to main content

derefs_to

Function derefs_to 

Source
pub fn derefs_to<Inner>(inner: Inner) -> DerefsTo<Inner>
Expand description

Dereferences the actual value and verifies that the returned reference matches the inner matcher.

verify_that!(Box::new(123), derefs_to(eq(&123)))