summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/cross-crate-bounds.stderr
blob: c4009dd96251f05f71d51b54d097bf549a4e7e1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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`.