]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/cross-crate-bounds.stderr
Auto merge of #106696 - kylematsuda:early-binder, r=lcnr
[rust.git] / tests / ui / generic-associated-types / cross-crate-bounds.stderr
1 error[E0277]: the trait bound `(): AsRef<()>` is not satisfied
2   --> $DIR/cross-crate-bounds.rs:15:16
3    |
4 LL |     type Bar = ();
5    |                ^^ the trait `AsRef<()>` is not implemented for `()`
6    |
7 note: required by a bound in `foo_defn::Foo::Bar`
8   --> $DIR/auxiliary/foo_defn.rs:4:15
9    |
10 LL |     type Bar: AsRef<()>;
11    |               ^^^^^^^^^ required by this bound in `Foo::Bar`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.