rust/tests/ui/resolve/issue-65025-extern-static-parent-generics.rs
León Orell Valerian Liehr b00e408e61
Generalize E0401
2023-09-10 23:06:14 +02:00

11 lines
210 B
Rust

unsafe fn foo<A>() {
extern "C" {
static baz: *const A;
//~^ ERROR can't use generic parameters from outer item
}
let bar: *const u64 = core::mem::transmute(&baz);
}
fn main() { }