blob: 07fa4cdc7535cf43b1cf0dc6ec4eab0a94e6e35e (
plain)
1
2
3
4
5
6
7
8
9
|
error[E0128]: generic parameter defaults cannot reference parameters before they are declared
--> $DIR/issue-18183.rs:1:20
|
LL | pub struct Foo<Bar=Bar>(Bar);
| ^^^ cannot reference `Bar` before it is declared
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0128`.
|