1 error: `~const` is not allowed here
2 --> $DIR/issue-90052.rs:6:22
4 LL | fn foo<T>() where T: ~const Bar {}
7 note: this function is not `const`, so it cannot have `~const` trait bounds
8 --> $DIR/issue-90052.rs:6:4
10 LL | fn foo<T>() where T: ~const Bar {}
13 error: aborting due to previous error