fork/rust

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

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

master
748 B25 linesraw
1error[E0046]: not all trait items implemented, missing: `foo`
2  --> $DIR/trivial_impl_sized.rs:15:1
3   |
4LL | /     fn foo()
5LL | |     where
6LL | |         Self: Sized;
7   | |____________________- `foo` from trait
8...
9LL |   impl Foo for i32 {}
10   |   ^^^^^^^^^^^^^^^^ missing `foo` in implementation
11
12error[E0046]: not all trait items implemented, missing: `foo`
13  --> $DIR/trivial_impl_sized.rs:19:1
14   |
15LL | /     fn foo()
16LL | |     where
17LL | |         Self: Sized;
18   | |____________________- `foo` from trait
19...
20LL |   impl Foo for dyn std::fmt::Debug {}
21   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `foo` in implementation
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0046`.