fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB32 linesraw
1error[E0277]: the trait bound `(): Foo` is not satisfied
2  --> $DIR/wf-foreign-fn-decl-ret.rs:11:25
3   |
4LL |     pub fn lint_me() -> <() as Foo>::Assoc;
5   |                         ^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `()`
6   |
7help: this trait has no implementations, consider adding one
8  --> $DIR/wf-foreign-fn-decl-ret.rs:6:1
9   |
10LL | pub trait Foo {
11   | ^^^^^^^^^^^^^
12
13error[E0277]: the trait bound `u32: Unsatisfied` is not satisfied
14  --> $DIR/wf-foreign-fn-decl-ret.rs:14:32
15   |
16LL |     pub fn lint_me_aswell() -> Bar<u32>;
17   |                                ^^^^^^^^ the trait `Unsatisfied` is not implemented for `u32`
18   |
19help: this trait has no implementations, consider adding one
20  --> $DIR/wf-foreign-fn-decl-ret.rs:1:1
21   |
22LL | pub trait Unsatisfied {}
23   | ^^^^^^^^^^^^^^^^^^^^^
24note: required by a bound in `Bar`
25  --> $DIR/wf-foreign-fn-decl-ret.rs:4:19
26   |
27LL | pub struct Bar<T: Unsatisfied>(T);
28   |                   ^^^^^^^^^^^ required by this bound in `Bar`
29
30error: aborting due to 2 previous errors
31
32For more information about this error, try `rustc --explain E0277`.