summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/projection-bound-cycle.stderr
blob: d9d0bf4274bd72c2f35ed75ea9053881260c36fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0275]: overflow evaluating the requirement `<T as Foo>::Item: Sized`
  --> $DIR/projection-bound-cycle.rs:46:18
   |
LL |     type Assoc = OnlySized<<T as Foo>::Item>;
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: required by a bound in `OnlySized`
  --> $DIR/projection-bound-cycle.rs:30:18
   |
LL | struct OnlySized<T> where T: Sized { f: T }
   |                  ^ required by this bound in `OnlySized`

error: aborting due to previous error

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