Sign in
fuchsia
/
third_party
/
rust
/
867ce769b6a27c8f359eb6573f5da8b34677d055
/
.
/
src
/
test
/
ui
/
error-codes
/
E0033.rs
blob: 582600e110ba0a00194eafc64922248639f99b47 [
file
] [
log
] [
blame
]
trait
SomeTrait
{
fn
foo
();
}
fn
main
()
{
let
trait_obj
:
&
dyn
SomeTrait
=
SomeTrait
;
//~^ ERROR expected value, found trait `SomeTrait`
//~| ERROR E0038
//~| method `foo` has no receiver
let
&
invalid
=
trait_obj
;
//~^ ERROR E0033
}