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