Sign in
fuchsia
/
fuchsia
/
eb50e07bc90baedf041d7def6479a9b91f880d73
/
.
/
third_party
/
rust_crates
/
vendor
/
mockall
/
tests
/
automock_consume_arguments.rs
blob: eb47fe89c3be2c6f41c63c4397a6c192310e455f [
file
] [
log
] [
blame
]
// vim: tw=80
#![
deny
(
warnings
)]
use
mockall
::*;
struct
NonCopy
{}
#[
automock
]
trait
T
{
fn
foo
(&
self
,
x
:
NonCopy
);
}
#[
test
]
fn
returning
()
{
let
mut
mock
=
MockT
::
new
();
mock
.
expect_foo
()
.
returning
(|
_x
:
NonCopy
|
());
mock
.
foo
(
NonCopy
{});
}