]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2632-const-trait-impl/issue-90052.stderr
Rollup merge of #106767 - chbaker0:disable-unstable-features, r=Mark-Simulacrum
[rust.git] / tests / ui / rfc-2632-const-trait-impl / issue-90052.stderr
1 error: `~const` is not allowed here
2   --> $DIR/issue-90052.rs:6:22
3    |
4 LL | fn foo<T>() where T: ~const Bar {}
5    |                      ^^^^^^^^^^
6    |
7 note: this function is not `const`, so it cannot have `~const` trait bounds
8   --> $DIR/issue-90052.rs:6:4
9    |
10 LL | fn foo<T>() where T: ~const Bar {}
11    |    ^^^
12
13 error: aborting due to previous error
14