summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/bugs/issue-89008.stderr
blob: 50844fdc14d942785d7b567a0895c8ca84c6de39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0271]: type mismatch resolving `<Empty<_> as Stream>::Item == Repr`
  --> $DIR/issue-89008.rs:39:43
   |
LL |     fn line_stream<'a, Repr>(&'a self) -> Self::LineStreamFut<'a, Repr> {
   |                        ----               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch resolving `<Empty<_> as Stream>::Item == Repr`
   |                        |
   |                        this type parameter
   |
note: expected this to be `()`
  --> $DIR/issue-89008.rs:18:17
   |
LL |     type Item = ();
   |                 ^^
   = note:   expected unit type `()`
           found type parameter `Repr`

error: aborting due to previous error

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