blob: 5a8d0fe1bd1d066bcb0f62f45097d9992074f6f7 [file] [log] [blame]
// vim: tw=80
#![deny(warnings)]
use mockall::*;
mock! {
Foo {
fn bar<T: 'static>(x: T);
}
}
#[test]
fn returning() {
let ctx = MockFoo::bar_context();
ctx.expect::<i16>().returning(|_| ());
MockFoo::bar(0i16)
}