rust/tests/ui/resolve/issue-65025-extern-static-parent-generics.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
210 B
Rust
Raw Normal View History

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