1 error[E0401]: can't use generic parameters from outer function
2 --> $DIR/issue-65035-static-with-parent-generics.rs:3:26
5 | - type parameter from outer function
7 LL | static a: *const T;
8 | ^ use of generic parameter from outer function
10 error[E0401]: can't use generic parameters from outer function
11 --> $DIR/issue-65035-static-with-parent-generics.rs:9:22
13 LL | fn g<T: Default>() {
14 | - type parameter from outer function
15 LL | static a: *const T = Default::default();
16 | ^ use of generic parameter from outer function
18 error[E0401]: can't use generic parameters from outer function
19 --> $DIR/issue-65035-static-with-parent-generics.rs:15:24
21 LL | fn h<const N: usize>() {
22 | - const parameter from outer function
24 LL | static a: [u8; N];
25 | ^ use of generic parameter from outer function
27 error[E0401]: can't use generic parameters from outer function
28 --> $DIR/issue-65035-static-with-parent-generics.rs:21:20
30 LL | fn i<const N: usize>() {
31 | - const parameter from outer function
32 LL | static a: [u8; N] = [0; N];
33 | ^ use of generic parameter from outer function
35 error[E0401]: can't use generic parameters from outer function
36 --> $DIR/issue-65035-static-with-parent-generics.rs:21:29
38 LL | fn i<const N: usize>() {
39 | - const parameter from outer function
40 LL | static a: [u8; N] = [0; N];
41 | ^ use of generic parameter from outer function
43 error: aborting due to 5 previous errors
45 For more information about this error, try `rustc --explain E0401`.