Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
impl-trait
/
transmute
/
outside-of-defining-scope.rs
blob: 0458e4520bfa1934ddb226910f50b8f535a8b62d [
file
] [
log
] [
blame
] [
edit
]
//! 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
());
}
}