fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
455 B12 linesraw
1error[E0401]: can't use generic parameters from outer function
2  --> $DIR/issue-65025-extern-static-parent-generics.rs:3:28
3   |
4LL | unsafe fn foo<A>() {
5   |               - type parameter from outer function
6LL |     extern "C" {
7LL |         static baz: *const A;
8   |                            ^ use of generic parameter from outer function
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0401`.