Sign in
fuchsia
/
fuchsia
/
eb50e07bc90baedf041d7def6479a9b91f880d73
/
.
/
third_party
/
rust_crates
/
vendor
/
mockall
/
tests
/
mock_static_method_with_generic_args.rs
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
)
}