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