]> git.lizzy.rs Git - rust.git/blob - src/test/ui/wf/wf-foreign-fn-decl-ret.stderr
Rollup merge of #105843 - compiler-errors:sugg-const, r=lcnr
[rust.git] / src / test / ui / wf / wf-foreign-fn-decl-ret.stderr
1 error[E0277]: the trait bound `(): Foo` is not satisfied
2   --> $DIR/wf-foreign-fn-decl-ret.rs:11:5
3    |
4 LL |     pub fn lint_me() -> <() as Foo>::Assoc;
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `()`
6
7 error[E0277]: the trait bound `u32: Unsatisfied` is not satisfied
8   --> $DIR/wf-foreign-fn-decl-ret.rs:14:32
9    |
10 LL |     pub fn lint_me_aswell() -> Bar<u32>;
11    |                                ^^^^^^^^ the trait `Unsatisfied` is not implemented for `u32`
12    |
13 note: required by a bound in `Bar`
14   --> $DIR/wf-foreign-fn-decl-ret.rs:4:19
15    |
16 LL | pub struct Bar<T: Unsatisfied>(T);
17    |                   ^^^^^^^^^^^ required by this bound in `Bar`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0277`.