summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2632-const-trait-impl/tilde-const-and-const-params.stderr
blob: aae72f36e5778a7ccabb505d4f09476624bd600e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: `~const` is not allowed here
  --> $DIR/tilde-const-and-const-params.rs:25:11
   |
LL | fn bar<A: ~const Add42, const N: usize>(_: Foo<N>) -> Foo<{ A::add(N) }> {
   |           ^^^^^^^^^^^^
   |
note: this function is not `const`, so it cannot have `~const` trait bounds
  --> $DIR/tilde-const-and-const-params.rs:25:4
   |
LL | fn bar<A: ~const Add42, const N: usize>(_: Foo<N>) -> Foo<{ A::add(N) }> {
   |    ^^^

error: aborting due to previous error