fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0770]: the type of const parameters must not depend on other generic parameters 2 --> $DIR/issue-88997.rs:8:40 3 | 4LL | struct Range<T: PartialOrd, const MIN: T, const MAX: T>(T) 5 | ^ the type must not depend on the parameter `T` 6 | 7 = note: type parameters may not be used in the type of const parameters 8 9error[E0770]: the type of const parameters must not depend on other generic parameters 10 --> $DIR/issue-88997.rs:8:54 11 | 12LL | struct Range<T: PartialOrd, const MIN: T, const MAX: T>(T) 13 | ^ the type must not depend on the parameter `T` 14 | 15 = note: type parameters may not be used in the type of const parameters 16 17error: aborting due to 2 previous errors 18 19For more information about this error, try `rustc --explain E0770`.