Files
rust/tests/ui/const-generics/issues/issue-84659.stderr

14 lines
355 B
Plaintext
Raw Normal View History

2021-09-02 21:20:51 +01:00
error: unconstrained generic constant
--> $DIR/issue-84659.rs:9:15
2021-09-02 21:20:51 +01:00
|
LL | type Baz: Bar<{ Self::N }>;
| ^^^^^^^^^^^^^^^^
|
help: try adding a `where` bound
|
LL | type Baz: Bar<{ Self::N }> where [(); { Self::N }]:;
| ++++++++++++++++++++++++
2021-09-02 21:20:51 +01:00
error: aborting due to 1 previous error
2021-09-02 21:20:51 +01:00