diff options
Diffstat (limited to 'src/test/ui/generic-associated-types/cross-crate-bounds.stderr')
-rw-r--r-- | src/test/ui/generic-associated-types/cross-crate-bounds.stderr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/generic-associated-types/cross-crate-bounds.stderr b/src/test/ui/generic-associated-types/cross-crate-bounds.stderr new file mode 100644 index 000000000..c4009dd96 --- /dev/null +++ b/src/test/ui/generic-associated-types/cross-crate-bounds.stderr @@ -0,0 +1,15 @@ +error[E0277]: the trait bound `(): AsRef<()>` is not satisfied + --> $DIR/cross-crate-bounds.rs:15:16 + | +LL | type Bar = (); + | ^^ the trait `AsRef<()>` is not implemented for `()` + | +note: required by a bound in `foo_defn::Foo::Bar` + --> $DIR/auxiliary/foo_defn.rs:6:15 + | +LL | type Bar: AsRef<()>; + | ^^^^^^^^^ required by this bound in `foo_defn::Foo::Bar` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0277`. |