Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
issues
/
issue-7061.rs
blob: ef61eac7baa82802644c5e03cc7dacf5eebbea0e [
file
] [
log
] [
blame
]
struct
BarStruct
;
impl
<
'
a
>
BarStruct
{
fn
foo
(&
'
a
mut
self
)
->
Box
<
BarStruct
>
{
self
}
//~^ ERROR mismatched types
//~| expected struct `std::boxed::Box<BarStruct>`
//~| found mutable reference `&'a mut BarStruct`
}
fn
main
()
{}