fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: `Inner` is forbidden as the type of a const generic parameter 2 --> $DIR/issue-74950.rs:20:23 3 | 4LL | struct Outer<const I: Inner>; 5 | ^^^^^ 6 | 7 = note: the only supported types are integers, `bool` and `char` 8 = help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types 9 10error: `Inner` is forbidden as the type of a const generic parameter 11 --> $DIR/issue-74950.rs:20:23 12 | 13LL | struct Outer<const I: Inner>; 14 | ^^^^^ 15 | 16 = note: the only supported types are integers, `bool` and `char` 17 = help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types 18 19error: `Inner` is forbidden as the type of a const generic parameter 20 --> $DIR/issue-74950.rs:20:23 21 | 22LL | struct Outer<const I: Inner>; 23 | ^^^^^ 24 | 25 = note: the only supported types are integers, `bool` and `char` 26 = help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types 27 28error: `Inner` is forbidden as the type of a const generic parameter 29 --> $DIR/issue-74950.rs:20:23 30 | 31LL | struct Outer<const I: Inner>; 32 | ^^^^^ 33 | 34 = note: the only supported types are integers, `bool` and `char` 35 = help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types 36 37error: `Inner` is forbidden as the type of a const generic parameter 38 --> $DIR/issue-74950.rs:20:23 39 | 40LL | struct Outer<const I: Inner>; 41 | ^^^^^ 42 | 43 = note: the only supported types are integers, `bool` and `char` 44 = help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types 45 46error: aborting due to 5 previous errors 47