Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
suggestions
/
imm-ref-trait-object-literal.rs
blob: 22ca6dde45eee1eac39177ce95cffd5fc5081389 [
file
] [
log
] [
blame
]
trait
Trait
{}
struct
S
;
impl
<
'a> Trait for &'
a
mut
S
{}
fn
foo
<
X
:
Trait
>(
_
:
X
)
{}
fn
main
()
{
let
s
=
S
;
foo
(&
s
);
//~ ERROR the trait bound `&S: Trait` is not satisfied
foo
(
s
);
//~ ERROR the trait bound `S: Trait` is not satisfied
}