]>
Commit | Line | Data |
---|---|---|
94222f64 XL |
1 | error: unconstrained generic constant |
2 | --> $DIR/generic-expr-default.rs:5:54 | |
3 | | | |
4 | LL | pub fn needs_evaluatable_bound<const N1: usize>() -> Foo<N1> { | |
5 | | ^^^^^^^ | |
6 | | | |
7 | = help: try adding a `where` bound using this expression: `where [(); { N + 1 }]:` | |
8 | ||
9 | error: unconstrained generic constant | |
10 | --> $DIR/generic-expr-default.rs:14:58 | |
11 | | | |
12 | LL | fn needs_evaluatable_bound_alias<T, const N: usize>() -> FooAlias<N> | |
13 | | ^^^^^^^^^^^ | |
14 | | | |
15 | = help: try adding a `where` bound using this expression: `where [(); { N + 1 }]:` | |
16 | ||
17 | error: aborting due to 2 previous errors | |
18 |