Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
resolve
/
issue-33876.rs
blob: e233ec631cc13d7e57f8296a63978fbe6c389bc7 [
file
] [
log
] [
blame
]
use
std
::
any
::
Any
;
struct
Foo
;
trait
Bar
{}
impl
Bar
for
Foo
{}
fn
main
()
{
let
any
:
&
dyn
Any
=
&
Bar
;
//~ ERROR expected value, found trait `Bar`
if
any
.
is
::<
u32
>()
{
println
!(
"u32"
);
}
}