Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
df59800b0875719b6f661cc191fa35263a29efa3
/
.
/
tests
/
ui
/
error-codes
/
E0038.rs
blob: a467767c3faaadf8cae653b9e7110ca224c1b3ca [
file
] [
log
] [
blame
]
trait
Trait
{
fn
foo
(&
self
)
->
Self
;
}
fn
call_foo
(
x
:
Box
<
dyn
Trait
>)
{
//~^ ERROR E0038
let
y
=
x
.
foo
();
//~^ ERROR E0038
//~| ERROR E0277
}
fn
main
()
{
}