blob: 480938d3b3db50317aded45b9fb15d06970fb43f [file]
#![feature(no_core)]
#![no_core]
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
struct A<T> {
// { dg-warning "struct is never constructed" "" { target *-*-* } .-1 }
f: *const T,
}
pub fn cast<T>(a: A<T>) {
let z = a.f as *const ();
}