]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-65025-extern-static-parent-generics.stderr
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / issue-65025-extern-static-parent-generics.stderr
1 error[E0401]: can't use generic parameters from outer function
2   --> $DIR/issue-65025-extern-static-parent-generics.rs:3:28
3    |
4 LL | unsafe fn foo<A>() {
5    |               - type parameter from outer function
6 LL |     extern "C" {
7 LL |         static baz: *const A;
8    |                            ^ use of generic parameter from outer function
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0401`.