about summary refs log tree commit diff
path: root/tests/ui/malformed/do-not-ice-on-note_and_explain.stderr
blob: 11a8c01e49094b91f16a6d871a2aa5b11e5efd23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0401]: can't reference `Self` constructor from outer item
  --> $DIR/do-not-ice-on-note_and_explain.rs:6:13
   |
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`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0401`.