Sign in
fuchsia
/
fuchsia
/
eb50e07bc90baedf041d7def6479a9b91f880d73
/
.
/
third_party
/
rust_crates
/
vendor
/
mockall
/
tests
/
mock_multiple_generic_arguments.rs
blob: 1221c715cc9d73e65579f94baf6413f9eb21abe4 [
file
] [
log
] [
blame
]
// vim: tw=80
#![
deny
(
warnings
)]
use
mockall
::*;
mock
!
{
Foo
{
fn
foo
<
T
:
'static, Q: '
static
>(&
self
,
t
:
T
,
q
:
Q
);
}
}
#[
test
]
fn
return_const
()
{
let
mut
mock
=
MockFoo
::
new
();
mock
.
expect_foo
::<
i16
,
i32
>().
return_const
(());
mock
.
foo
(
0i16
,
1i32
)
}