blob: 08a82d7303e117e426077edc6ed5b06c9e6eac9d [file]
//@ ignore-apple
// `#[track_caller]` is only valid on functions, not on EII (foreign) statics.
#![feature(extern_item_impls)]
#![feature(extern_item_default_impls)]
#[track_caller] //~ ERROR the `track_caller` attribute cannot be used on foreign statics
#[eii(sfoo)]
static FOO: u64 = 42;
fn main() {
println!("{FOO}");
}