]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/issues/issue-88997.stderr
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov
[rust.git] / src / test / ui / const-generics / issues / issue-88997.stderr
1 error[E0770]: the type of const parameters must not depend on other generic parameters
2   --> $DIR/issue-88997.rs:8:40
3    |
4 LL | struct Range<T: PartialOrd, const MIN: T, const MAX: T>(T)
5    |                                        ^ the type must not depend on the parameter `T`
6
7 error[E0770]: the type of const parameters must not depend on other generic parameters
8   --> $DIR/issue-88997.rs:8:54
9    |
10 LL | struct Range<T: PartialOrd, const MIN: T, const MAX: T>(T)
11    |                                                      ^ the type must not depend on the parameter `T`
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0770`.