blob: ba87574eae047a3c90f9dce643f30bb173f2b9a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Test that inference types in `offset_of!` don't ICE.
#![feature(offset_of)]
struct Foo<T> {
x: T,
}
fn main() {
let _ = core::mem::offset_of!(Foo<_>, x); //~ ERROR: type annotations needed
}
|