]> git.proxmox.com Git - rustc.git/blame - src/test/ui/wf/wf-foreign-fn-decl-ret.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / wf / wf-foreign-fn-decl-ret.stderr
CommitLineData
3dfed10e 1error[E0277]: the trait bound `(): Foo` is not satisfied
136023e0 2 --> $DIR/wf-foreign-fn-decl-ret.rs:11:25
3dfed10e 3 |
136023e0
XL
4LL | pub trait Foo {
5 | ------------- required by this bound in `Foo`
6...
3dfed10e 7LL | pub fn lint_me() -> <() as Foo>::Assoc;
136023e0 8 | ^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `()`
3dfed10e
XL
9
10error[E0277]: the trait bound `u32: Unsatisfied` is not satisfied
11 --> $DIR/wf-foreign-fn-decl-ret.rs:14:32
12 |
13LL | pub struct Bar<T: Unsatisfied>(T);
14 | ----------- required by this bound in `Bar`
15...
16LL | pub fn lint_me_aswell() -> Bar<u32>;
17 | ^^^^^^^^ the trait `Unsatisfied` is not implemented for `u32`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0277`.