2024-04-19 21:54:53 -05:00
|
|
|
error[E0401]: can't reference `Self` constructor from outer item
|
|
|
|
--> $DIR/do-not-ice-on-note_and_explain.rs:6:13
|
2023-10-26 14:56:46 -05:00
|
|
|
|
|
2024-04-19 21:54:53 -05:00
|
|
|
LL | impl<B> A<B> {
|
|
|
|
| ------------ the inner item doesn't inherit generics from this impl, so `Self` is invalid to reference
|
|
|
|
...
|
|
|
|
LL | Self(1)
|
|
|
|
| ^^^^ help: replace `Self` with the actual type: `A`
|
2023-10-26 14:56:46 -05:00
|
|
|
|
2024-04-19 21:54:53 -05:00
|
|
|
error: aborting due to 1 previous error
|
2023-10-26 14:56:46 -05:00
|
|
|
|
2024-04-19 21:54:53 -05:00
|
|
|
For more information about this error, try `rustc --explain E0401`.
|