Sign in
android
/
toolchain
/
rustc
/
ee32a8b31351dab7161ea2edd877e46fc49c72d0
/
.
/
tests
/
ui
/
impl-trait
/
transmute
/
outside-of-defining-scope.rs
blob: 7bc22ea416f06f5627c61171812f8e301600355c [
file
] [
log
] [
blame
]
//! Check that typeck can observe the size of an opaque type.
// check-pass
use
std
::
mem
::
transmute
;
fn
foo
()
->
impl
Sized
{
0u8
}
fn
main
()
{
unsafe
{
transmute
::<
_
,
u8
>(
foo
());
}
}