]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/defaults/generic-expr-default.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / const-generics / defaults / generic-expr-default.stderr
CommitLineData
94222f64
XL
1error: unconstrained generic constant
2 --> $DIR/generic-expr-default.rs:5:54
3 |
4LL | 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
9error: unconstrained generic constant
10 --> $DIR/generic-expr-default.rs:14:58
11 |
12LL | 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
17error: aborting due to 2 previous errors
18