Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
offset-of
/
offset-of-inference.rs
blob: 1b1ae25e1ee65c331e9e9c5d5760d984e38b7aa2 [
file
] [
log
] [
blame
] [
edit
]
// Test that inference types in `offset_of!` don't ICE.
struct
Foo
<
T
>
{
x
:
T
,
}
fn
main
()
{
let
_
=
core
::
mem
::
offset_of
!(
Foo
<
_
>,
x
);
//~ ERROR: type annotations needed
}