diff options
Diffstat (limited to 'src/test/ui/generic-associated-types/projection-bound-cycle.stderr')
-rw-r--r-- | src/test/ui/generic-associated-types/projection-bound-cycle.stderr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/generic-associated-types/projection-bound-cycle.stderr b/src/test/ui/generic-associated-types/projection-bound-cycle.stderr new file mode 100644 index 000000000..d9d0bf427 --- /dev/null +++ b/src/test/ui/generic-associated-types/projection-bound-cycle.stderr @@ -0,0 +1,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`. |