]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/projection-bound-cycle.stderr
Add tests for `#[no_mangle]` in `impl` blocks that looks like generic `impl` blocks...
[rust.git] / src / test / ui / generic-associated-types / projection-bound-cycle.stderr
1 error[E0275]: overflow evaluating the requirement `<T as Foo>::Item: Sized`
2   --> $DIR/projection-bound-cycle.rs:46:5
3    |
4 LL | struct OnlySized<T> where T: Sized { f: T }
5    |                  - required by this bound in `OnlySized`
6 ...
7 LL |     type Assoc = OnlySized<<T as Foo>::Item>;
8    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0275`.